From: Ralf Wildenhues Date: Sun, 23 Jan 2011 09:57:21 +0000 (+0100) Subject: tests: avoid instspc* failures due to make's whitespace trimming X-Git-Tag: ng-0.5a~239 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6050166bf1898b9ef1aa8cd23e2f88255c7d270b;p=thirdparty%2Fautomake.git tests: avoid instspc* failures due to make's whitespace trimming * tests/instspc-tests.sh: Prepend './' when passing the test characters, to avoid leading whitespace characters to be trimmed from macros set from environment variables. Fixes testsuite failures with HP-UX and Tru64/OSF make. Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index 6bae147c4..6a8aa8075 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2011-01-23 Ralf Wildenhues + + tests: avoid instspc* failures due to make's whitespace trimming + * tests/instspc-tests.sh: Prepend './' when passing the test + characters, to avoid leading whitespace characters to be trimmed + from macros set from environment variables. Fixes testsuite + failures with HP-UX and Tru64/OSF make. + 2011-01-22 Ralf Wildenhues tests: fix VPATH auto-expansion workarounds. diff --git a/tests/instspc-tests.sh b/tests/instspc-tests.sh index 38a63a46f..1be8d0e88 100755 --- a/tests/instspc-tests.sh +++ b/tests/instspc-tests.sh @@ -296,8 +296,12 @@ cd "./$build" ../configure --prefix "/$instspc_test_string-prefix" $MAKE +# Some make implementations eliminate leading and trailing whitespace +# from macros passed on the command line, and some eliminate leading +# whitespace from macros set from environment variables, so prepend +# './' and use the latter here. # Tru64 sh -e needs '|| Exit' in order to work correctly. -DESTDIR="$dest" file="$instspc_test_string" $MAKE -e test-install-sep \ +DESTDIR="$dest" file="./$instspc_test_string" $MAKE -e test-install-sep \ || Exit 1 :