xref: /freebsd/contrib/pjdfstest/tests/chmod/10.t (revision 3078531de10dcae44b253a35125c949ff4235284)
1#!/bin/sh
2# vim: filetype=sh noexpandtab ts=8 sw=8
3# $FreeBSD: head/tools/regression/pjdfstest/tests/chmod/10.t 211352 2010-08-15 21:24:17Z pjd $
4
5desc="chmod returns EFAULT if the path argument points outside the process's allocated address space"
6
7dir=`dirname $0`
8. ${dir}/../misc.sh
9
10if supported lchmod; then
11	echo "1..4"
12else
13	echo "1..2"
14fi
15
16expect EFAULT chmod NULL 0644
17expect EFAULT chmod DEADCODE 0644
18if supported lchmod; then
19	expect EFAULT lchmod NULL 0644
20	expect EFAULT lchmod DEADCODE 0644
21fi
22