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