Mercurial > gnulib
annotate tests/test-xstdopen.sh @ 40231:9b3c79fdfe0b
strtod: fix clash with strtold
Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
* lib/strtod.c (compute_minus_zero, minus_zero):
Simplify by remving the macro / external variable,
and having just a function. User changed. This avoids
the need for an external variable that might clash.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Mon, 11 Mar 2019 16:40:29 -0700 |
parents | 8c1a17df67e0 |
children |
rev | line source |
---|---|
40091 | 1 #!/bin/sh |
2 | |
3 # Test with all of stdin, stdout, stderr open. | |
40221
8c1a17df67e0
tests: Prepare for using valgrind.
Bruno Haible <bruno@clisp.org>
parents:
40091
diff
changeset
|
4 ${CHECKER} ./test-xstdopen${EXEEXT} || exit 1 |
40091 | 5 |
6 # The syntax for closed file descriptors in sh scripts is specified by POSIX in | |
7 # section 2.7.5 of | |
8 # http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html | |
9 | |
10 # Test with stdin closed. | |
40221
8c1a17df67e0
tests: Prepare for using valgrind.
Bruno Haible <bruno@clisp.org>
parents:
40091
diff
changeset
|
11 ${CHECKER} ./test-xstdopen${EXEEXT} <&- || exit 1 |
40091 | 12 |
13 # Test with stdout closed. | |
40221
8c1a17df67e0
tests: Prepare for using valgrind.
Bruno Haible <bruno@clisp.org>
parents:
40091
diff
changeset
|
14 ${CHECKER} ./test-xstdopen${EXEEXT} >&- || exit 1 |
40091 | 15 |
16 # Test with stderr closed. | |
40221
8c1a17df67e0
tests: Prepare for using valgrind.
Bruno Haible <bruno@clisp.org>
parents:
40091
diff
changeset
|
17 ${CHECKER} ./test-xstdopen${EXEEXT} 2>&- || exit 1 |
40091 | 18 |
19 # Test with all of stdin, stdout, stderr closed. | |
40221
8c1a17df67e0
tests: Prepare for using valgrind.
Bruno Haible <bruno@clisp.org>
parents:
40091
diff
changeset
|
20 ${CHECKER} ./test-xstdopen${EXEEXT} <&- >&- 2>&- || exit 1 |