]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: avoid hang when files created with wrong permissions
authorPádraig Brady <P@draigBrady.com>
Sun, 13 Jul 2014 22:48:38 +0000 (23:48 +0100)
committerPádraig Brady <P@draigBrady.com>
Sun, 13 Jul 2014 23:54:57 +0000 (00:54 +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

index 319acf5ead7bb2b5841c105a60b7231c259df1a8..86f95a0574e071ec71875519f57fa200e005cf3c 100755 (executable)
@@ -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