]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: avoid instspc.test failures due to make's whitespace trimming
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 23 Jan 2011 10:26:50 +0000 (11:26 +0100)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 24 Jan 2011 20:39:41 +0000 (21:39 +0100)
* tests/instspc.test: 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, IRIX, and Tru64/OSF make.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
tests/instspc.test

index c632b44327285de4ea3880b4fddae0918bbff764..1118e60378b7452f93a2e9f45b80601305546103 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-01-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       tests: avoid instspc.test failures due to make's whitespace trimming
+       * tests/instspc.test: 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, IRIX, and Tru64/OSF make.
+
 2011-01-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
 
        coverage: test semantics of "dummy" per-target flags
index 414b3e59094fd91e28fb72da32eb7111fa43dfcb..7d007884f8f7f66c84cc5de142a9dffb44f72ad3 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
+# Copyright (C) 2004, 2005, 2011 Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -135,9 +135,13 @@ do
 
     cd "$build"
 
+    # 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.
     ../configure --prefix "/$file-prefix" &&
     $MAKE &&
-    DESTDIR=$dest file=$file $MAKE -e test-install-sep ||
+    DESTDIR=$dest file=./$file $MAKE -e test-install-sep ||
       eval "${test}_failures=\"\$${test}_failures$lf\$file\""
 
     cd ..