openat: don’t close (-1)
[gnulib.git] / tests / test-copy-file-1.sh
blobb5669915903933792fecc92b9d7514bb811b28cd
1 #!/bin/sh
3 # Test copy-file on the file system of /var/tmp, which usually is a local
4 # file system.
6 . "${srcdir=.}/init.sh"; path_prepend_ .
8 if test -d /var/tmp; then
9 TMPDIR=/var/tmp
10 else
11 TMPDIR=/tmp
13 test -d $TMPDIR || Exit 77
14 export TMPDIR
16 $BOURNE_SHELL "${srcdir}/test-copy-file.sh"
17 ret1=$?
18 NO_STDERR_OUTPUT=1 $BOURNE_SHELL "${srcdir}/test-copy-file.sh"
19 ret2=$?
20 case $ret1 in
21 77 ) Exit $ret2 ;;
22 * ) Exit $ret1 ;;
23 esac