2 # vim: filetype=sh noexpandtab ts=8 sw=8
3 # $FreeBSD: head/tools/regression/pjdfstest/tests/truncate/02.t 211352 2010-08-15 21:24:17Z pjd $
5 desc="truncate returns ENAMETOOLONG if a component of a pathname exceeded {NAME_MAX} characters"
15 expect 0 create ${nx} 0644
16 expect 0 truncate ${nx} 123
17 expect 123 stat ${nx} size
19 expect ENAMETOOLONG truncate ${nxx} 123