xref: /openbsd/regress/sys/ffs/tests/rename/17.t (revision d415bd75)
1#!/bin/sh
2# $FreeBSD: src/tools/regression/fstest/tests/rename/17.t,v 1.1 2007/01/17 01:42:10 pjd Exp $
3
4desc="rename returns EFAULT if one of the pathnames specified is outside the process's allocated address space"
5
6n0=`namegen`
7
8expect 0 create ${n0} 0644
9expect EFAULT rename ${n0} NULL
10expect EFAULT rename ${n0} DEADCODE
11expect 0 unlink ${n0}
12expect EFAULT rename NULL ${n0}
13expect EFAULT rename DEADCODE ${n0}
14expect EFAULT rename NULL DEADCODE
15expect EFAULT rename DEADCODE NULL
16