diff options
Diffstat (limited to 'tests/symlink/12.t')
-rw-r--r-- | tests/symlink/12.t | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/symlink/12.t b/tests/symlink/12.t new file mode 100644 index 000000000000..2c699050e673 --- /dev/null +++ b/tests/symlink/12.t @@ -0,0 +1,18 @@ +#!/bin/sh +# $FreeBSD: head/tools/regression/pjdfstest/tests/symlink/12.t 211352 2010-08-15 21:24:17Z pjd $ + +desc="symlink returns EFAULT if one of the pathnames specified is outside the process's allocated address space" + +dir=`dirname $0` +. ${dir}/../misc.sh + +echo "1..6" + +n0=`namegen` + +expect EFAULT symlink NULL ${n0} +expect EFAULT symlink DEADCODE ${n0} +expect EFAULT symlink test NULL +expect EFAULT symlink test DEADCODE +expect EFAULT symlink NULL DEADCODE +expect EFAULT symlink DEADCODE NULL |