summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2023-05-07 21:23:56 +0200
committerJoel Rosdahl <joel@rosdahl.net>2023-05-07 22:15:28 +0200
commitef634bdb292e1e24b8d1b5490e7857144a77c0fd (patch)
treed03e1d1c268970d5f16f0a9c9f578d7faf98bc27
parenta25633df522dede9a0a30e1fcc0df568582a4168 (diff)
downloadccache-master.tar.gz
test: Fix test failure in GitHub CI mingw64 jobsHEADmaster
-rw-r--r--test/suites/base.bash6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/suites/base.bash b/test/suites/base.bash
index 7c54ec0e..38d26970 100644
--- a/test/suites/base.bash
+++ b/test/suites/base.bash
@@ -552,8 +552,10 @@ fi
# -------------------------------------------------------------------------
TEST "Directory is not hashed if using -gz"
- $COMPILER -E test1.c -gz >preprocessed.i 2>/dev/null
- if [ -s preprocessed.i ] && ! grep -Fq $PWD preprocessed.i; then
+ if $COMPILER -c test1.c -gz 2>/dev/null
+ && $COMPILER -E test1.c -gz >preprocessed.i 2>/dev/null \
+ && [ -s preprocessed.i ] \
+ && ! grep -Fq $PWD preprocessed.i; then
mkdir dir1 dir2
cp test1.c dir1
cp test1.c dir2