turns printfs back on
[freebsd-src/fkvm-freebsd.git] / tools / regression / fstest / tests / truncate / 11.t
blobf86235b94076a68e55a7c6cc84028a6df82fcd04
1 #!/bin/sh
2 # $FreeBSD$
4 desc="truncate returns ETXTBSY the file is a pure procedure (shared text) file that is being executed"
6 dir=`dirname $0`
7 . ${dir}/../misc.sh
9 case "${os}" in
10 FreeBSD)
11 echo "1..2"
13 n0=`namegen`
15 cp -pf `which sleep` ${n0}
16 ./${n0} 3 &
17 expect ETXTBSY truncate ${n0} 123
18 expect 0 unlink ${n0}
21 quick_exit
23 esac