Mercurial > gnulib
view tests/test-xstdopen.sh @ 40246:c34f677e6117 default tip master
_Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
* lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
GCC 4.8.
author | Akim Demaille <akim.demaille@gmail.com> |
---|---|
date | Sun, 17 Mar 2019 19:27:20 +0100 |
parents | 8c1a17df67e0 |
children |
line wrap: on
line source
#!/bin/sh # Test with all of stdin, stdout, stderr open. ${CHECKER} ./test-xstdopen${EXEEXT} || exit 1 # The syntax for closed file descriptors in sh scripts is specified by POSIX in # section 2.7.5 of # http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html # Test with stdin closed. ${CHECKER} ./test-xstdopen${EXEEXT} <&- || exit 1 # Test with stdout closed. ${CHECKER} ./test-xstdopen${EXEEXT} >&- || exit 1 # Test with stderr closed. ${CHECKER} ./test-xstdopen${EXEEXT} 2>&- || exit 1 # Test with all of stdin, stdout, stderr closed. ${CHECKER} ./test-xstdopen${EXEEXT} <&- >&- 2>&- || exit 1