coreutils
[Top][All Lists]
Advanced

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

[PATCH] tests: avoid hang when files created with wrong permissions


From: Pádraig Brady
Subject: [PATCH] tests: avoid hang when files created with wrong permissions
Date: Mon, 14 Jul 2014 00:56:16 +0100

* tests/split/b-chunk.sh: Never show the rm prompt which would
hang the test suite.  This was seen when split erroneously
created files with no persmissions, which was triggered by
this compiler bug in clang 3.4:
http://llvm.org/bugs/show_bug.cgi?id=18346
---
 tests/split/b-chunk.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/split/b-chunk.sh b/tests/split/b-chunk.sh
index 319acf5..86f95a0 100755
--- a/tests/split/b-chunk.sh
+++ b/tests/split/b-chunk.sh
@@ -23,7 +23,7 @@ print_ver_ split
 # in which case no data is extracted, or empty files are written
 split -n 10 /dev/null || fail=1
 test "$(stat -c %s x* | uniq -c | sed 's/^ *//; s/ /x/')" = "10x0" || fail=1
-rm x??
+rm -f x??
 
 # Ensure --elide-empty-files is honored
 split -e -n 10 /dev/null || fail=1
-- 
1.7.7.6




reply via email to

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