]> CyberLeo.Net >> Repos - FreeBSD/releng/9.0.git/blob - tools/regression/pjdfstest/tests/chmod/10.t
Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
[FreeBSD/releng/9.0.git] / tools / regression / pjdfstest / tests / chmod / 10.t
1 #!/bin/sh
2 # $FreeBSD$
3
4 desc="chmod returns EFAULT if the path argument points outside the process's allocated address space"
5
6 dir=`dirname $0`
7 . ${dir}/../misc.sh
8
9 if supported lchmod; then
10         echo "1..4"
11 else
12         echo "1..2"
13 fi
14
15 expect EFAULT chmod NULL 0644
16 expect EFAULT chmod DEADCODE 0644
17 if supported lchmod; then
18         expect EFAULT lchmod NULL 0644
19         expect EFAULT lchmod DEADCODE 0644
20 fi