From 2419df4139e7ef90442bb3899ad9a4fc1c3c2ee3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?= Date: Sun, 13 Jul 2014 23:48:38 +0100 Subject: [PATCH] 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 --- tests/split/b-chunk.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.2