]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: tail-2/wait: rename internal file name
authorJim Meyering <meyering@redhat.com>
Fri, 3 Jul 2009 15:10:27 +0000 (17:10 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 3 Jul 2009 15:52:30 +0000 (17:52 +0200)
* tests/tail-2/wait: Rename file from not_accessible to unreadable,
since all the test cares about is readability.

tests/tail-2/wait

index 8f2f6107ff7dc94bde5a5f96301b6cdbb35e1309..a902b54bb02b5df6a3c2f8920944fae9c124eb8d 100755 (executable)
@@ -28,7 +28,7 @@ require_proc_pid_status_
 
 touch here || framework_failure
 touch k || framework_failure
-(touch not_accessible && chmod 0 not_accessible) || framework_failure
+(touch unreadable && chmod a-r unreadable) || framework_failure
 
 fail=0
 
@@ -46,8 +46,8 @@ if test -n "$state"; then
 fi
 
 # Check if the file is really not accessible before use it.
-if ! cat not_accessible; then
-    tail -s0.1 -f not_accessible &
+if ! cat unreadable; then
+    tail -s0.1 -f unreadable &
     pid=$!
     sleep .5
     state=$(get_process_status_ $pid)
@@ -90,7 +90,7 @@ if test -n "$state"; then
   kill $pid
 fi
 
-tail -s0.1 -F not_accessible &
+tail -s0.1 -F unreadable &
 pid=$!
 sleep .5
 state=$(get_process_status_ $pid)