mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-16 01:22:18 +03:00
* lib/copy-file.h (GL_COPY_ERR_*): New enumeration items. (qcopy_file_preserving): New declaration. * lib/copy-file.c (qcopy_file_preserving): Renamed from copy_file_preserving. Change return type to 'int'. Don't emit an error message here. (copy_file_preserving): New function. * tests/test-copy-file.c: Include <stdlib.h>. (main): Test qcopy_file_preserving if the environment variable NO_STDERR_OUTPUT is set. * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time, with NO_STDERR_OUTPUT * tests/test-copy-file-2.sh: Likewise.
17 lines
306 B
Bash
Executable File
17 lines
306 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Test copy-file on the file system of the build directory, which may be
|
|
# a local file system or NFS mounted.
|
|
|
|
TMPDIR=`pwd`
|
|
export TMPDIR
|
|
|
|
"${srcdir}/test-copy-file.sh"
|
|
ret1=$?
|
|
NO_STDERR_OUTPUT=1 "${srcdir}/test-copy-file.sh"
|
|
ret2=$?
|
|
case $ret1 in
|
|
77 ) exit $ret2 ;;
|
|
* ) exit $ret1 ;;
|
|
esac
|