]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
*** empty log message ***
authorJim Meyering <jim@meyering.net>
Wed, 2 Feb 2000 13:59:43 +0000 (13:59 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 2 Feb 2000 13:59:43 +0000 (13:59 +0000)
tests/touch/fifo [new file with mode: 0755]

diff --git a/tests/touch/fifo b/tests/touch/fifo
new file mode 100755 (executable)
index 0000000..b1a436d
--- /dev/null
@@ -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