summaryrefslogtreecommitdiff
path: root/tests/touch/fifo
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2008-03-28 14:32:44 +0100
committerJim Meyering <meyering@redhat.com>2008-03-28 14:33:27 +0100
commitdc16dc835c8ba446136e01e994b0008ed32984fa (patch)
treed14a704eaedbbbfd4319ac8203e91f6c7807aac0 /tests/touch/fifo
parent17720c10cd73b71230f309137c437bf3aad7b6f5 (diff)
downloadcoreutils-dc16dc835c8ba446136e01e994b0008ed32984fa.tar.xz
tests: Factor out code that's going to be reused.
* tests/test-lib.sh (mkfifo_or_skip_): New function, factored out of... * tests/touch/fifo: ...here.
Diffstat (limited to 'tests/touch/fifo')
-rwxr-xr-xtests/touch/fifo8
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/touch/fifo b/tests/touch/fifo
index 00b46f5c5..5dd084065 100755
--- a/tests/touch/fifo
+++ b/tests/touch/fifo
@@ -23,13 +23,7 @@ fi
. $srcdir/../test-lib.sh
-if ! mkfifo fifo; then
- # Make an exception of this case -- usually we interpret framework-creation
- # failure as a test failure. However, in this case, when running on a SunOS
- # system using a disk NFS mounted from OpenBSD, the above fails like this:
- # mkfifo: cannot make fifo `fifo-10558': Not owner
- skip_test_ 'NOTICE: unable to create test prerequisites'
-fi
+mkfifo_or_skip_ fifo
fail=0