09.t revision 271295
19484Sgarrett.damore@Sun.COM#!/bin/sh 29484Sgarrett.damore@Sun.COM# $FreeBSD: head/tools/regression/pjdfstest/tests/truncate/09.t 211352 2010-08-15 21:24:17Z pjd $ 39484Sgarrett.damore@Sun.COM 49484Sgarrett.damore@Sun.COMdesc="truncate returns EISDIR if the named file is a directory" 59484Sgarrett.damore@Sun.COM 69484Sgarrett.damore@Sun.COMdir=`dirname $0` 79484Sgarrett.damore@Sun.COM. ${dir}/../misc.sh 89484Sgarrett.damore@Sun.COM 99484Sgarrett.damore@Sun.COMecho "1..3" 109484Sgarrett.damore@Sun.COM 119484Sgarrett.damore@Sun.COMn0=`namegen` 129484Sgarrett.damore@Sun.COM 139484Sgarrett.damore@Sun.COMexpect 0 mkdir ${n0} 0755 149484Sgarrett.damore@Sun.COMexpect EISDIR truncate ${n0} 123 159484Sgarrett.damore@Sun.COMexpect 0 rmdir ${n0} 169484Sgarrett.damore@Sun.COM