1#!/bin/sh 2# $FreeBSD: head/tools/regression/pjdfstest/tests/rename/17.t 211352 2010-08-15 21:24:17Z 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