view tests/test-copy-file-1.sh @ 40149:e1f68c6256cf

vma-iter: Add support for Android. * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well. * lib/vma-iter.c: Treat Android like Linux. * lib/get-rusage-data.c (get_rusage_data): Likewise.
author Bruno Haible <bruno@clisp.org>
date Sun, 27 Jan 2019 04:57:29 +0100
parents d50152d6b5d2
children 066c585853e5
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