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