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