summaryrefslogtreecommitdiffstats
path: root/tools/regression/fstest/tests/mkfifo/03.t
diff options
context:
space:
mode:
Diffstat (limited to 'tools/regression/fstest/tests/mkfifo/03.t')
-rw-r--r--tools/regression/fstest/tests/mkfifo/03.t21
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/regression/fstest/tests/mkfifo/03.t b/tools/regression/fstest/tests/mkfifo/03.t
new file mode 100644
index 0000000..aa48201
--- /dev/null
+++ b/tools/regression/fstest/tests/mkfifo/03.t
@@ -0,0 +1,21 @@
+#!/bin/sh
+# $FreeBSD$
+
+desc="mkfifo returns ENAMETOOLONG if an entire path name exceeded 1023 characters"
+
+dir=`dirname $0`
+. ${dir}/../misc.sh
+
+echo "1..11"
+
+expect 0 mkdir ${name255} 0755
+expect 0 mkdir ${name255}/${name255} 0755
+expect 0 mkdir ${name255}/${name255}/${name255} 0755
+expect 0 mkdir ${path1021} 0755
+expect 0 mkfifo ${path1023} 0644
+expect 0 unlink ${path1023}
+expect ENAMETOOLONG mkfifo ${path1024} 0644
+expect 0 rmdir ${path1021}
+expect 0 rmdir ${name255}/${name255}/${name255}
+expect 0 rmdir ${name255}/${name255}
+expect 0 rmdir ${name255}
OpenPOWER on IntegriCloud