summaryrefslogtreecommitdiff
path: root/tests/split/b-chunk.sh
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2014-07-13 23:48:38 +0100
committerPádraig Brady <P@draigBrady.com>2014-07-14 00:54:57 +0100
commit2419df4139e7ef90442bb3899ad9a4fc1c3c2ee3 (patch)
tree61d48670cd9fa0b3999abb73e291343320a7de2f /tests/split/b-chunk.sh
parent803ec30b95c5ab9064ac7391ac04950aca123b50 (diff)
downloadcoreutils-2419df4139e7ef90442bb3899ad9a4fc1c3c2ee3.tar.xz
tests: avoid hang when files created with wrong permissions
* 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
Diffstat (limited to 'tests/split/b-chunk.sh')
-rwxr-xr-xtests/split/b-chunk.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/split/b-chunk.sh b/tests/split/b-chunk.sh
index 319acf5ea..86f95a057 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