]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - tools/regression/pjdfstest/tests/symlink/02.t
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / tools / regression / pjdfstest / tests / symlink / 02.t
1 #!/bin/sh
2 # $FreeBSD$
3
4 desc="symlink returns ENAMETOOLONG if a component of the name2 pathname exceeded {NAME_MAX} characters"
5
6 dir=`dirname $0`
7 . ${dir}/../misc.sh
8
9 echo "1..7"
10
11 n0=`namegen`
12 nx=`namegen_max`
13 nxx="${nx}x"
14
15 expect 0 symlink ${nx} ${n0}
16 expect 0 unlink ${n0}
17 expect 0 symlink ${n0} ${nx}
18 expect 0 unlink ${nx}
19
20 expect ENAMETOOLONG symlink ${n0} ${nxx}
21 expect 0 symlink ${nxx} ${n0}
22 expect 0 unlink ${n0}