view tests/test-copy-file-2.sh @ 40227:5207eb0dcd2a

tests: Avoid havoc with "gcc -fcheck-pointer-bounds". * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds is in use. * tests/test-printf-posix2.c: Likewise.
author Bruno Haible <bruno@clisp.org>
date Sun, 10 Mar 2019 17:09:30 +0100
parents 066c585853e5
children
line wrap: on
line source

#!/bin/sh

# Test copy-file on the file system of the build directory, which may be
# a local file system or NFS mounted.

. "${srcdir=.}/init.sh"; path_prepend_ .

TMPDIR=`pwd`
export TMPDIR

$BOURNE_SHELL "${srcdir}/test-copy-file.sh"
ret1=$?
NO_STDERR_OUTPUT=1 $BOURNE_SHELL "${srcdir}/test-copy-file.sh"
ret2=$?
case $ret1 in
  77 ) Exit $ret2 ;;
  * ) Exit $ret1 ;;
esac