summaryrefslogtreecommitdiffstats
path: root/tools/regression/fstest/tests/mkfifo/00.t
diff options
context:
space:
mode:
Diffstat (limited to 'tools/regression/fstest/tests/mkfifo/00.t')
-rw-r--r--tools/regression/fstest/tests/mkfifo/00.t14
1 files changed, 12 insertions, 2 deletions
diff --git a/tools/regression/fstest/tests/mkfifo/00.t b/tools/regression/fstest/tests/mkfifo/00.t
index 15f8409..eda7b17 100644
--- a/tools/regression/fstest/tests/mkfifo/00.t
+++ b/tools/regression/fstest/tests/mkfifo/00.t
@@ -15,6 +15,9 @@ expect 0 mkdir ${n1} 0755
cdir=`pwd`
cd ${n1}
+# POSIX: The file permission bits of the new FIFO shall be initialized from
+# mode. The file permission bits of the mode argument shall be modified by the
+# process' file creation mask.
expect 0 mkfifo ${n0} 0755
expect fifo,0755 lstat ${n0} type,mode
expect 0 unlink ${n0}
@@ -31,18 +34,25 @@ expect 0 -U 0501 mkfifo ${n0} 0345
expect fifo,0244 lstat ${n0} type,mode
expect 0 unlink ${n0}
+# POSIX: The FIFO's user ID shall be set to the process' effective user ID.
+# The FIFO's group ID shall be set to the group ID of the parent directory or to
+# the effective group ID of the process.
expect 0 chown . 65535 65535
expect 0 -u 65535 -g 65535 mkfifo ${n0} 0755
expect 65535,65535 lstat ${n0} uid,gid
expect 0 unlink ${n0}
expect 0 -u 65535 -g 65534 mkfifo ${n0} 0755
-expect 65535,65535 lstat ${n0} uid,gid
+expect "65535,6553[45]" lstat ${n0} uid,gid
expect 0 unlink ${n0}
expect 0 chmod . 0777
expect 0 -u 65534 -g 65533 mkfifo ${n0} 0755
-expect 65534,65535 lstat ${n0} uid,gid
+expect "65534,6553[35]" lstat ${n0} uid,gid
expect 0 unlink ${n0}
+# POSIX: Upon successful completion, mkfifo() shall mark for update the
+# st_atime, st_ctime, and st_mtime fields of the file. Also, the st_ctime and
+# st_mtime fields of the directory that contains the new entry shall be marked
+# for update.
expect 0 chown . 0 0
time=`${fstest} stat . ctime`
sleep 1
OpenPOWER on IntegriCloud