turns printfs back on
[freebsd-src/fkvm-freebsd.git] / tools / regression / fstest / tests / open / 22.t
blob5e3d22827f7463f303ca3d9e436b3b44e671eb22
1 #!/bin/sh
2 # $FreeBSD$
4 desc="open returns EEXIST when O_CREAT and O_EXCL were specified and the file exists"
6 dir=`dirname $0`
7 . ${dir}/../misc.sh
9 echo "1..12"
11 n0=`namegen`
13 expect 0 create ${n0} 0644
14 expect EEXIST open ${n0} O_CREAT,O_EXCL 0644
15 expect 0 unlink ${n0}
17 expect 0 mkdir ${n0} 0755
18 expect EEXIST open ${n0} O_CREAT,O_EXCL 0644
19 expect 0 rmdir ${n0}
21 expect 0 mkfifo ${n0} 0644
22 expect EEXIST open ${n0} O_CREAT,O_EXCL 0644
23 expect 0 unlink ${n0}
25 expect 0 symlink test ${n0}
26 expect EEXIST open ${n0} O_CREAT,O_EXCL 0644
27 expect 0 unlink ${n0}