view tests/test-copy-file-2.sh @ 40218:e92cc6824b7f

getloadavg: Write NULL for the null pointer. Reported by Michal Privoznik <mprivozn@redhat.com>. * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
author Bruno Haible <bruno@clisp.org>
date Sun, 03 Mar 2019 19:36:14 +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