* tests/rm/inaccessible: Source test-lib.sh *before* using skip_test_.
authorJim Meyering <meyering@redhat.com>
Mon, 11 Feb 2008 19:47:26 +0000 (20:47 +0100)
committerJim Meyering <meyering@redhat.com>
Mon, 11 Feb 2008 20:40:07 +0000 (21:40 +0100)
Reported by Peter Fales.

Signed-off-by: Jim Meyering <meyering@redhat.com>
tests/rm/inaccessible

index ca82a2c..2175a7d 100755 (executable)
@@ -2,7 +2,7 @@
 # Ensure that rm works even when run from a directory
 # for which the user has no access at all.
 
-# Copyright (C) 2004, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2004, 2006-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,6 +23,7 @@ if test "$VERBOSE" = yes; then
 fi
 
 . $srcdir/../lang-default
+. $srcdir/../test-lib.sh
 
 # Skip this test if your system has neither the openat-style functions
 # nor /proc/self/fd support with which to emulate them.
@@ -33,7 +34,6 @@ if test $skip = yes; then
   skip_test_ 'this system lacks openat support'
 fi
 
-. $srcdir/../test-lib.sh
 skip_if_root_
 
 p=`pwd`