]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
test: Improve masquerading suite probe
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 10 Oct 2020 17:33:07 +0000 (19:33 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sat, 10 Oct 2020 17:47:30 +0000 (19:47 +0200)
test/suites/masquerading.bash

index 8b1042928340eaf024075fb18fd3b5a4097becc8..aa50e86ba6051e8ca0ab2422a13e18b32f8faf06 100644 (file)
@@ -1,12 +1,13 @@
 SUITE_masquerading_PROBE() {
     local compiler_binary
-    if [ "$(dirname $COMPILER_BIN)" != . ]; then
-        echo "compiler ($COMPILER_BIN) not taken from PATH"
-    fi
     if $HOST_OS_WINDOWS || $HOST_OS_CYGWIN; then
         echo "symlinks not supported on $(uname -s)"
         return
     fi
+    if [ "$(dirname $COMPILER_BIN)" != . ]; then
+        echo "compiler ($COMPILER_BIN) not taken from PATH"
+        return
+    fi
 }
 
 SUITE_masquerading_SETUP() {