]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: avoid instspc* failures due to make's whitespace trimming
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 23 Jan 2011 09:57:21 +0000 (10:57 +0100)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 23 Jan 2011 09:57:21 +0000 (10:57 +0100)
* 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 <Ralf.Wildenhues@gmx.de>
ChangeLog
tests/instspc-tests.sh

index 6bae147c4ee4260c323b7a9f0922fbf10bb67216..6a8aa807549cbffa43ab1a961b8999d1cca19ee6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-01-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       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  <Ralf.Wildenhues@gmx.de>
 
        tests: fix VPATH auto-expansion workarounds.
index 38a63a46fc175b83881f362177a05944d7157f7f..1be8d0e8868b6d5c49b5ac423112a9713e58375a 100755 (executable)
@@ -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
 
 :