view tests/test-copy-file-1.sh @ 17288:e1bf1347de53

doc: clarify -Werror * doc/warnings.texi (warnings): -Werror is not always a bad idea; clarify that it's intended for developers, not for ordinary builds, and mention --enable-gcc-warnings as one possible use.
author Paul Eggert <eggert@cs.ucla.edu>
date Tue, 15 Jan 2013 12:21:42 -0800
parents d50152d6b5d2
children
line wrap: on
line source

#!/bin/sh

# Test copy-file on the file system of /var/tmp, which usually is a local
# file system.

if test -d /var/tmp; then
  TMPDIR=/var/tmp
else
  TMPDIR=/tmp
fi
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