automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[FYI] {master} tests: fix race condition in 'self-check-dir.tap'


From: Stefano Lattarini
Subject: [FYI] {master} tests: fix race condition in 'self-check-dir.tap'
Date: Sun, 19 Feb 2012 12:34:42 +0100

* tests/self-check-dir.tap (do_check): Don't fail if "ls -l" fails.
---
 tests/self-check-dir.tap |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/tests/self-check-dir.tap b/tests/self-check-dir.tap
index 1a5d6b4..a934188 100755
--- a/tests/self-check-dir.tap
+++ b/tests/self-check-dir.tap
@@ -38,7 +38,8 @@ do_check ()
   command_ok_ "$1 [$2]" $SHELL -c "
     $2
     . ./defs || Exit 99
-    pwd; ls -l; # For debugging.
+    # Don't fail if 'ls -l' fails; avoids possible racy spurious failures.
+    pwd; ls -l || : # For debugging.
     $3
   " _self.test
 }
-- 
1.7.9




reply via email to

[Prev in Thread] Current Thread [Next in Thread]