]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: fix a spurious XPASS on OpenIndiana
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 4 Aug 2012 21:03:46 +0000 (23:03 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 4 Aug 2012 21:03:46 +0000 (23:03 +0200)
* t/instspc.tap: Here, by isolating the $(DESTDIR) used by runs with
different "problematic strings" to prevent them to unduly interfering
with each other.  With this, the Automake testsuite finally run cleanly
on the OpenIndiana and Solaris 10 systems I have access to.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
t/instspc.tap

index f72ccf3b8078d303be187cc580b7d5d46225a006..2a0fb10091b3f03f5247ddcfcc52ff8d64a95792 100755 (executable)
@@ -285,7 +285,13 @@ for test_name in $test_names_list; do
         ;;
       dest)
         build=build-$test_name
-        dest=$ocwd/$test_string
+        # Also use $test_name in the definition of $dest, to avoid
+        # interferences among different tests in case $test_string
+        # is strangely munged (which is not unexpected, considering
+        # how tricky its characters are).  With some shells, this
+        # has already happened (at least on OpenIndiana 11 and on
+        # Solaris 10).
+        dest=$ocwd/dest-$test_name/$test_string
         mkdir "$build" || fatal_ "cannot create '$build'"
         ;;
       *)