summaryrefslogtreecommitdiff
path: root/regress/sys/ffs/tests/rename/01.t
diff options
context:
space:
mode:
Diffstat (limited to 'regress/sys/ffs/tests/rename/01.t')
-rw-r--r--regress/sys/ffs/tests/rename/01.t16
1 files changed, 16 insertions, 0 deletions
diff --git a/regress/sys/ffs/tests/rename/01.t b/regress/sys/ffs/tests/rename/01.t
new file mode 100644
index 00000000000..a0abbad5c72
--- /dev/null
+++ b/regress/sys/ffs/tests/rename/01.t
@@ -0,0 +1,16 @@
+#!/bin/sh
+# $FreeBSD: src/tools/regression/fstest/tests/rename/01.t,v 1.1 2007/01/17 01:42:10 pjd Exp $
+
+desc="rename returns ENAMETOOLONG if a component of either pathname exceeded 255 characters"
+
+n0=`namegen`
+
+expect 0 create ${name255} 0644
+expect 0 rename ${name255} ${n0}
+expect 0 rename ${n0} ${name255}
+expect 0 unlink ${name255}
+
+expect 0 create ${n0} 0644
+expect ENAMETOOLONG rename ${n0} ${name256}
+expect 0 unlink ${n0}
+expect ENAMETOOLONG rename ${name256} ${n0}