1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-16 00:36:08 +02:00

Exit 77 when run as root. Reported by Andreas Schwab.

This commit is contained in:
Jim Meyering
2000-05-23 21:13:28 +00:00
parent 5f3b8f3038
commit dfdfbc22b3

View File

@@ -32,6 +32,16 @@ framework_failure=0
mkdir $tmp || framework_failure=1
cd $tmp
touch file || framework_failure=1
chmod u-w file || framework_failure=1
(echo foo >> file) >/dev/null 2>&1 && {
echo '********************************************'
echo "$0: NOTICE: This test case cannot be run as root."
echo '********************************************'
exit 77
}
for i in a b c d e f g h; do
echo $i > $i || framework_failure=1
done