diff options
author | Enji Cooper <ngie@FreeBSD.org> | 2014-09-09 02:50:09 +0000 |
---|---|---|
committer | Enji Cooper <ngie@FreeBSD.org> | 2014-09-09 02:50:09 +0000 |
commit | 9a56205fc912cc30c498cd8ab536eef96373b16f (patch) | |
tree | bd5f561604ac7481d7b8cdb06fb9cc3ba6e1512d /tests/unlink/02.t |
Add vendor import for pjdfstestvendor/pjdfstest/abf03c3a47745d4521b0e4aa141317553ca48f91
This vendor import code was obtained from
https://github.com/pjd/pjdfstest/commit/abf03c3a47745d4521b0e4aa141317553ca48f91
Approved by: rpaulo (mentor)
Phabric: D743
Sponsored by: EMC / Isilon Storage Division
Notes
Notes:
svn path=/vendor/pjdfstest/dist/; revision=271294
svn path=/vendor/pjdfstest/abf03c3a47745d4521b0e4aa141317553ca48f91/; revision=271295; tag=vendor/pjdfstest/abf03c3a47745d4521b0e4aa141317553ca48f91
Diffstat (limited to 'tests/unlink/02.t')
-rw-r--r-- | tests/unlink/02.t | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/unlink/02.t b/tests/unlink/02.t new file mode 100644 index 000000000000..e624d987e813 --- /dev/null +++ b/tests/unlink/02.t @@ -0,0 +1,17 @@ +#!/bin/sh +# $FreeBSD: head/tools/regression/pjdfstest/tests/unlink/02.t 211352 2010-08-15 21:24:17Z pjd $ + +desc="unlink returns ENAMETOOLONG if a component of a pathname exceeded {NAME_MAX} characters" + +dir=`dirname $0` +. ${dir}/../misc.sh + +echo "1..4" + +nx=`namegen_max` +nxx="${nx}x" + +expect 0 create ${nx} 0644 +expect 0 unlink ${nx} +expect ENOENT unlink ${nx} +expect ENAMETOOLONG unlink ${nxx} |