01.t revision 271294
1271294Sngie#!/bin/sh 2271294Sngie# $FreeBSD: head/tools/regression/pjdfstest/tests/truncate/01.t 211352 2010-08-15 21:24:17Z pjd $ 3271294Sngie 4271294Sngiedesc="truncate returns ENOTDIR if a component of the path prefix is not a directory" 5271294Sngie 6271294Sngiedir=`dirname $0` 7271294Sngie. ${dir}/../misc.sh 8271294Sngie 9271294Sngieecho "1..5" 10271294Sngie 11271294Sngien0=`namegen` 12271294Sngien1=`namegen` 13271294Sngie 14271294Sngieexpect 0 mkdir ${n0} 0755 15271294Sngieexpect 0 create ${n0}/${n1} 0644 16271294Sngieexpect ENOTDIR truncate ${n0}/${n1}/test 123 17271294Sngieexpect 0 unlink ${n0}/${n1} 18271294Sngieexpect 0 rmdir ${n0} 19