]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/blob - tools/regression/fstest/tests/open/02.t
Copy head to stable/8 as part of 8.0 Release cycle.
[FreeBSD/stable/8.git] / tools / regression / fstest / tests / open / 02.t
1 #!/bin/sh
2 # $FreeBSD$
3
4 desc="open returns ENAMETOOLONG if a component of a pathname exceeded 255 characters"
5
6 dir=`dirname $0`
7 . ${dir}/../misc.sh
8
9 echo "1..4"
10
11 expect 0 open ${name255} O_CREAT 0620
12 expect 0620 stat ${name255} mode
13 expect 0 unlink ${name255}
14 expect ENAMETOOLONG open ${name256} O_CREAT 0620