2 # vim: filetype=sh noexpandtab ts=8 sw=8
3 # $FreeBSD: head/tools/regression/pjdfstest/tests/truncate/03.t 211352 2010-08-15 21:24:17Z pjd $
5 desc="truncate returns ENAMETOOLONG if an entire path name exceeded {PATH_MAX} characters"
17 expect 0 create ${nx} 0644
18 expect 0 truncate ${nx} 123
19 expect regular,123 stat ${nx} type,size
21 expect ENAMETOOLONG truncate ${nxx} 123