Ignore machine-check MSRs
[freebsd-src/fkvm-freebsd.git] / tools / regression / fstest / tests / link / 10.t
blobbeb141c81d8d8f5e84f499cad2b194a5fd6f6b0b
1 #!/bin/sh
2 # $FreeBSD$
4 desc="link returns EEXIST if the destination file does exist"
6 dir=`dirname $0`
7 . ${dir}/../misc.sh
9 echo "1..14"
11 n0=`namegen`
12 n1=`namegen`
14 expect 0 create ${n0} 0644
16 expect 0 create ${n1} 0644
17 expect EEXIST link ${n0} ${n1}
18 expect 0 unlink ${n1}
20 expect 0 mkdir ${n1} 0755
21 expect EEXIST link ${n0} ${n1}
22 expect 0 rmdir ${n1}
24 expect 0 symlink test ${n1}
25 expect EEXIST link ${n0} ${n1}
26 expect 0 unlink ${n1}
28 expect 0 mkfifo ${n1} 0644
29 expect EEXIST link ${n0} ${n1}
30 expect 0 unlink ${n1}
32 expect 0 unlink ${n0}