repo.or.cz
/
freebsd-src
/
fkvm-freebsd.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
turns printfs back on
[freebsd-src/fkvm-freebsd.git]
/
tools
/
regression
/
fstest
/
tests
/
truncate
/
11.t
blob
f86235b94076a68e55a7c6cc84028a6df82fcd04
1
#!/bin/sh
2
# $FreeBSD$
3
4
desc
=
"truncate returns ETXTBSY the file is a pure procedure (shared text) file that is being executed"
5
6
dir
=
`dirname
$0
`
7
.
${dir}
/
..
/
misc.sh
8
9
case
"
${os}
"
in
10
FreeBSD
)
11
echo
"1..2"
12
13
n0
=
`namegen`
14
15
cp
-pf
`which sleep`
${n0}
16
.
/
${n0}
3
&
17
expect ETXTBSY truncate
${n0}
123
18
expect
0
unlink
${n0}
19
;;
20
*)
21
quick_exit
22
;;
23
esac