]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: fix spurious failure in 'color2.test'
authorStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 2 May 2011 22:27:07 +0000 (00:27 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 2 May 2011 22:29:23 +0000 (00:29 +0200)
* tests/color2.test: If $MAKE contains command-line arguments (as
in e.g., "make -j2"), expect's directive "spawn $env(MAKE)" fails
spuriously, because it tries to run "$MAKE" as a single command.
Fix this with proper uses of the TCL `eval' builtin.

ChangeLog
tests/color2.test

index 046ecffc6d7b0e1600403c445a32a64397170dbc..a5354c135486e4f5cf122674416069f5e565608a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-05-03  Stefano Lattarini  <stefano.lattarini@gmail.com>
+
+       tests: fix spurious failure in 'color2.test'
+       * tests/color2.test: If $MAKE contains command-line arguments (as
+       in e.g., "make -j2"), expect's directive "spawn $env(MAKE)" fails
+       spuriously, because it tries to run "$MAKE" as a single command.
+       Fix this with proper uses of the TCL `eval' builtin.
+
 2011-05-01  Stefano Lattarini  <stefano.lattarini@gmail.com>
 
        tests: fix self check spurious failure with older bash versions
index c3315deb409e70e8d874c1168ff578f2e0221bfa..eb9c52788b600ba9e532ce442005c064293083e2 100755 (executable)
@@ -39,7 +39,7 @@ esac
 # Check that we have a working expect program.
 cat >expect-check <<'END'
 #! /usr/bin/expect -f
-spawn $env(THE_SYSTEM_SHELL) -c :
+eval spawn $env(THE_SYSTEM_SHELL) -c :
 expect eof
 END
 THE_SYSTEM_SHELL=/bin/sh expect -f expect-check || {
@@ -107,7 +107,7 @@ test_no_color ()
 
 cat >expect-make <<'END'
 #! /usr/bin/expect -f
-spawn $env(MAKE) -e check
+eval spawn $env(MAKE) -e check
 expect eof
 END