From 2b87d03f50d5c9926b5ebf992ddbe50f325b8c38 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 15 Sep 2001 11:18:40 +0000 Subject: Clean up: use priv-check rather than open-coding it. --- tests/mv/i-2 | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'tests/mv') diff --git a/tests/mv/i-2 b/tests/mv/i-2 index 72f26ed9a..82cce5710 100755 --- a/tests/mv/i-2 +++ b/tests/mv/i-2 @@ -13,6 +13,8 @@ fi # Make sure we get English translations. . $srcdir/../lang-default +PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check + pwd=`pwd` tmp=cp-mv-if-$$ trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0 @@ -22,16 +24,6 @@ framework_failure=0 mkdir $tmp || framework_failure=1 cd $tmp || framework_failure=1 -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 -- cgit v1.2.3-70-g09d2