From efadf6233bb53aa0fa18f3c1fb35b3d53b77fc2a Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Mon, 5 Nov 2018 09:37:46 +0100 Subject: [PATCH] show the output when the test is failing --- debian/qualify-clang.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/debian/qualify-clang.sh b/debian/qualify-clang.sh index 8991015b..dd26f1db 100755 --- a/debian/qualify-clang.sh +++ b/debian/qualify-clang.sh @@ -84,8 +84,9 @@ echo 'bool testAndSet(void *atomic) { return __atomic_test_and_set(atomic, __ATOMIC_SEQ_CST); }'> foo.cpp clang++-$VERSION -c -target aarch64-linux-gnu foo.cpp -if ! file foo.o 2>&1 | grep -q "aarch64"; then - echo "Could not find the string 'aarch64' in the output of file" +if ! file foo.o 2>&1 | grep -i -q "aarch64"; then + echo "Could not find the string 'aarch64' in the output of file. Output:" + file foo.o exit 42 fi echo '