From: Jim Meyering Date: Wed, 2 Feb 2000 13:59:43 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: SH-UTILS-2_0f~33 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=93d0c6c472727be9e89c0b1116cc2141fabea59b;p=thirdparty%2Fcoreutils.git *** empty log message *** --- diff --git a/tests/touch/fifo b/tests/touch/fifo new file mode 100755 index 0000000000..b1a436d97b --- /dev/null +++ b/tests/touch/fifo @@ -0,0 +1,24 @@ +#!/bin/sh +# Make sure touch works on fifos without hanging. + +if test "$VERBOSE" = yes; then + set -x + touch --version +fi + +framework_failure=0 + +rm -rf fifo +mkfifo fifo || framework_failure=1 + +if test $framework_failure = 1; then + echo 'failure in testing framework' + exit 1 +fi + +fail=0 + +touch fifo || fail=1 +rm -rf fifo + +exit $fail