17.t revision 166065
1#!/bin/sh
2# $FreeBSD: head/tools/regression/fstest/tests/rename/17.t 166065 2007-01-17 01:42:12Z pjd $
3
4desc="rename returns EFAULT if one of the pathnames specified is outside the process's allocated address space"
5
6dir=`dirname $0`
7. ${dir}/../misc.sh
8
9echo "1..8"
10
11n0=`namegen`
12
13expect 0 create ${n0} 0644
14expect EFAULT rename ${n0} NULL
15expect EFAULT rename ${n0} DEADCODE
16expect 0 unlink ${n0}
17expect EFAULT rename NULL ${n0}
18expect EFAULT rename DEADCODE ${n0}
19expect EFAULT rename NULL DEADCODE
20expect EFAULT rename DEADCODE NULL
21