umask 077
-mkfifo fifo ||
- skip_test_ "fifos not supported"
+mkfifo_or_skip_ fifo
touch fifo-copy &&
chgrp $g1 fifo &&
require_local_dir_
umask 022
-mkfifo fifo ||
- skip_test_ "fifos not supported"
+mkfifo_or_skip_ fifo
# Copy a fifo's contents. That way, we can examine the
# destination permissions before they're finalized.
for attr in mode ownership
do
- mkfifo $attr/fifo ||
- skip_test_ "fifos not supported"
+ mkfifo_or_skip_ $attr/fifo
# Copy a fifo's contents. That way, we can examine d/$attr's
# state while cp is running.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
print_ver_ cp
-mkfifo fifo ||
- skip_test_ "fifos not supported"
+mkfifo_or_skip_ fifo
+
touch e || framework-failure
# until the consumer (dd) opens the fifo therefore
# increasing the chance that dd will read the data
# from each printf separately.
-mkfifo dd.fifo || framework_failure
+mkfifo_or_skip_ dd.fifo
dd_reblock_1()
{
# 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'
+ skip_test_ 'unable to create a fifo'
fi
}
"
mknod char c 10 10 2> /dev/null && char="char
"
-mkfifo fifo
+mkfifo_or_skip_ fifo
cd ..
# consumer (dd) opens the fifo therefore increasing
# the chance that dd will read the data from each
# write separately.
-mkfifo fifo || framework_failure
+mkfifo_or_skip_ fifo
echo 1 > exp
. "${srcdir=.}/init.sh"; path_prepend_ ../src
print_ver_ mknod
+# Ensure fifos are supported
+mkfifo_or_skip_ fifo
umask 777
# and to make an N-byte-allocating-printf require more than that, thus
# triggering the printf(3) misbehavior -- which, btw, is required by ISO C99.
-mkfifo fifo || framework_failure
+mkfifo_or_skip_ fifo
# Disable MALLOC_PERTURB_, to avoid triggering this bug
# http://bugs.debian.org/481543#77
# Create a regular file, dir, fifo.
touch f || framework_failure
mkdir d s1 s2 || framework_failure
-mkfifo p || framework_failure
+mkfifo_or_skip_ p
# special context that works both with and without mcstransd
skip_test_ 'requires pthreads'
seq 100000 > in || framework_failure_
-mkfifo fifo || framework_failure_
+mkfifo_or_skip_ fifo
# Arrange for sort to require 5.0+ seconds of wall-clock time,
# while actually using far less than 1 second of CPU time.
# consumer (dd) opens the fifo therefore increasing
# the chance that dd will read the data from each
# write separately.
-mkfifo fifo || framework_failure
+mkfifo_or_skip_ fifo
# Verify input parameter checking
# Give tac a fifo command line argument.
# This makes it try to create a temporary file in $TMPDIR.
-mkfifo fifo
+mkfifo_or_skip fifo
seq 1000 > fifo &
TMPDIR=$FULL_PARTITION_TMPDIR tac fifo in >out 2>err && fail=1