From: Pádraig Brady Date: Sun, 13 Jul 2014 22:48:38 +0000 (+0100) Subject: tests: avoid hang when files created with wrong permissions X-Git-Tag: v8.23~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2419df4139e7ef90442bb3899ad9a4fc1c3c2ee3;p=thirdparty%2Fcoreutils.git 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 --- diff --git a/tests/split/b-chunk.sh b/tests/split/b-chunk.sh index 319acf5ead..86f95a0574 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