1#!/bin/sh 2# vim: filetype=sh noexpandtab ts=8 sw=8 3# $FreeBSD: head/tools/regression/pjdfstest/tests/chown/04.t 211410 2010-08-17 06:08:09Z pjd $ 4 5desc="chown returns ENOENT if the named file does not exist" 6 7dir=`dirname $0` 8. ${dir}/../misc.sh 9 10echo "1..9" 11 12n0=`namegen` 13n1=`namegen` 14n2=`namegen` 15 16expect 0 mkdir ${n0} 0755 17expect ENOENT chown ${n0}/${n1}/test 65534 65534 18expect ENOENT chown ${n0}/${n1} 65534 65534 19expect ENOENT lchown ${n0}/${n1}/test 65534 65534 20expect ENOENT lchown ${n0}/${n1} 65534 65534 21expect 0 symlink ${n2} ${n0}/${n1} 22expect ENOENT chown ${n0}/${n1} 65534 65534 23expect 0 unlink ${n0}/${n1} 24expect 0 rmdir ${n0} 25