From 4486e12033902297fa597022a6fe959887d49b39 Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Tue, 19 Feb 2013 23:09:14 +0000 Subject: 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 Reviewed-by: Oswald Buddenhagen --- config.tests/unix/compile.test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config.tests/unix/compile.test') 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 -- cgit v1.2.3