summaryrefslogtreecommitdiffstats
path: root/config.tests
diff options
context:
space:
mode:
authorRay Donnelly <mingw.android@gmail.com>2013-02-19 23:09:14 +0000
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-02-20 22:19:43 +0100
commit4486e12033902297fa597022a6fe959887d49b39 (patch)
tree0f860ac8d950441a2d420efddff5f9772ec3a306 /config.tests
parent7d408c543f0f1271b4a0cd4c55a57ad9f90ca998 (diff)
Relax unix compile.test to check the expected file exists
When cross compiling between two systems that use different program file formats (such as PECOFF vs ELF) -x cannot be relied upon, so -f should be used instead. Change-Id: I4c80646b2b1fbdd6072589d4d9e852adda83424a Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Diffstat (limited to 'config.tests')
-rwxr-xr-xconfig.tests/unix/compile.test2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.tests/unix/compile.test b/config.tests/unix/compile.test
index 79e7619d5b..994b21c447 100755
--- a/config.tests/unix/compile.test
+++ b/config.tests/unix/compile.test
@@ -76,7 +76,7 @@ else
$MAKE >/dev/null 2>&1
fi
-( [ -x "$EXE" ] || [ -x "${EXE}.exe" ] ) && SUCCESS=yes
+( [ -f "$EXE" ] || [ -f "${EXE}.exe" ] ) && SUCCESS=yes
# done
if [ "$SUCCESS" != "yes" ]; then