xref: /freebsd/contrib/pjdfstest/tests/symlink/12.t (revision 02e9120893770924227138ba49df1edb3896112a)
1#!/bin/sh
2# vim: filetype=sh noexpandtab ts=8 sw=8
3# $FreeBSD: head/tools/regression/pjdfstest/tests/symlink/12.t 211352 2010-08-15 21:24:17Z pjd $
4
5desc="symlink returns EFAULT if one of the pathnames specified is outside the process's allocated address space"
6
7dir=`dirname $0`
8. ${dir}/../misc.sh
9
10echo "1..6"
11
12n0=`namegen`
13
14expect EFAULT symlink NULL ${n0}
15expect EFAULT symlink DEADCODE ${n0}
16expect EFAULT symlink test NULL
17expect EFAULT symlink test DEADCODE
18expect EFAULT symlink NULL DEADCODE
19expect EFAULT symlink DEADCODE NULL
20