summaryrefslogtreecommitdiff
path: root/regress/sys/ffs/tests/truncate/07.t
diff options
context:
space:
mode:
Diffstat (limited to 'regress/sys/ffs/tests/truncate/07.t')
-rw-r--r--regress/sys/ffs/tests/truncate/07.t14
1 files changed, 14 insertions, 0 deletions
diff --git a/regress/sys/ffs/tests/truncate/07.t b/regress/sys/ffs/tests/truncate/07.t
new file mode 100644
index 00000000000..98c70a0ef58
--- /dev/null
+++ b/regress/sys/ffs/tests/truncate/07.t
@@ -0,0 +1,14 @@
+#!/bin/sh
+# $FreeBSD: src/tools/regression/fstest/tests/truncate/07.t,v 1.1 2007/01/17 01:42:12 pjd Exp $
+
+desc="truncate returns ELOOP if too many symbolic links were encountered in translating the pathname"
+
+n0=`namegen`
+n1=`namegen`
+
+expect 0 symlink ${n0} ${n1}
+expect 0 symlink ${n1} ${n0}
+expect ELOOP truncate ${n0}/test 123
+expect ELOOP truncate ${n1}/test 123
+expect 0 unlink ${n0}
+expect 0 unlink ${n1}