Ignore machine-check MSRs
[freebsd-src/fkvm-freebsd.git] / tools / regression / fstest / tests / link / 03.t
blob8fcb77fbafcc4be5fc2ff036325e3ebc80f71b31
1 #!/bin/sh
2 # $FreeBSD$
4 desc="link returns ENAMETOOLONG if an entire length of either path name exceeded 1023 characters"
6 dir=`dirname $0`
7 . ${dir}/../misc.sh
9 echo "1..16"
11 n0=`namegen`
13 expect 0 mkdir ${name255} 0755
14 expect 0 mkdir ${name255}/${name255} 0755
15 expect 0 mkdir ${name255}/${name255}/${name255} 0755
16 expect 0 mkdir ${path1021} 0755
17 expect 0 create ${path1023} 0644
18 expect 0 link ${path1023} ${n0}
19 expect 0 unlink ${path1023}
20 expect 0 link ${n0} ${path1023}
21 expect 0 unlink ${path1023}
22 expect ENAMETOOLONG link ${n0} ${path1024}
23 expect 0 unlink ${n0}
24 expect ENAMETOOLONG link ${path1024} ${n0}
25 expect 0 rmdir ${path1021}
26 expect 0 rmdir ${name255}/${name255}/${name255}
27 expect 0 rmdir ${name255}/${name255}
28 expect 0 rmdir ${name255}