xref: /openbsd-src/regress/sys/ffs/tests/link/17.t (revision ec7c50bfa3724241accbdcc8f761ed61061a0645)
1#!/bin/sh
2# $FreeBSD: src/tools/regression/fstest/tests/link/17.t,v 1.1 2007/01/17 01:42:09 pjd Exp $
3
4desc="link 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 link ${n0} NULL
10expect EFAULT link ${n0} DEADCODE
11expect 0 unlink ${n0}
12expect EFAULT link NULL ${n0}
13expect EFAULT link DEADCODE ${n0}
14expect EFAULT link NULL DEADCODE
15expect EFAULT link DEADCODE NULL
16