1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-17 00:56:34 +02:00
Files
coreutils/tests/touch/fifo
Jim Meyering 177daedd5e sheesh
2000-02-02 14:03:56 +00:00

26 lines
345 B
Bash
Executable File

#!/bin/sh
# Make sure touch works on fifos without hanging.
if test "$VERBOSE" = yes; then
set -x
touch --version
fi
framework_failure=0
tmp=fifo-$$
rm -rf $tmp
mkfifo $tmp || framework_failure=1
if test $framework_failure = 1; then
echo 'failure in testing framework'
exit 1
fi
fail=0
touch $tmp || fail=1
rm -rf $tmp
exit $fail