diff options
author | Joel Rosdahl <joel@rosdahl.net> | 2023-05-07 21:23:56 +0200 |
---|---|---|
committer | Joel Rosdahl <joel@rosdahl.net> | 2023-05-07 22:15:28 +0200 |
commit | ef634bdb292e1e24b8d1b5490e7857144a77c0fd (patch) | |
tree | d03e1d1c268970d5f16f0a9c9f578d7faf98bc27 | |
parent | a25633df522dede9a0a30e1fcc0df568582a4168 (diff) | |
download | ccache-master.tar.gz |
-rw-r--r-- | test/suites/base.bash | 6 |
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 |