From: Peter Fales Date: Tue, 12 Feb 2008 17:15:29 +0000 (+0100) Subject: tests/touch/not-owner: Source test-lib.sh before using skip_test_. X-Git-Tag: v6.11~147 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70a2bd1864aa34fcde4a179f3c5e2db5bed645e3;p=thirdparty%2Fcoreutils.git tests/touch/not-owner: Source test-lib.sh before using skip_test_. Signed-off-by: Jim Meyering --- diff --git a/tests/touch/not-owner b/tests/touch/not-owner index 4024e03510..0723eade27 100755 --- a/tests/touch/not-owner +++ b/tests/touch/not-owner @@ -2,7 +2,7 @@ # Make sure that touch gives reasonable diagnostics when applied # to an unwritable directory owned by some other user. -# Copyright (C) 2003-2007 Free Software Foundation, Inc. +# Copyright (C) 2003-2008 Free Software Foundation, Inc. # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -23,8 +23,9 @@ if test "$VERBOSE" = yes; then fi . $srcdir/../lang-default +. $srcdir/../test-lib.sh -test=../../src/test +test=$abs_top_builddir/src/test if $test -w /; then skip_test_ you have write access to /. fi @@ -33,7 +34,6 @@ if $test -O / || $test -G /; then skip_test_ "you own /." fi -. $srcdir/../test-lib.sh skip_if_root_ fail=0