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