]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Don't rely on "PATH=test:$PATH test-1" working
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 25 Mar 2002 22:02:24 +0000 (22:02 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 25 Mar 2002 22:02:24 +0000 (22:02 +0000)
as POSIX requires, as it doesn't work with Zsh.

tests/m4sh.at

index a452a13d7cbc3fe0ab8e8fceac9e26674266199f..803cd04f45539b2e3f9c99e2f24e2c814a165b23 100644 (file)
@@ -72,14 +72,16 @@ AT_CHECK([mkdir test || exit 77])
 AT_DATA_LINENO([test/test-1.as], [false], [$@&t@LINENO], [LINENO])
 AT_CHECK([autom4te -l m4sh test/test-1.as -o test/test-1])
 AT_CHECK([./test/test-1],                          0, [expout])
-AT_CHECK([PATH=test$PATH_SEPARATOR$PATH test-1],   0, [expout])
+AT_CHECK([(PATH=test$PATH_SEPARATOR$PATH; export PATH; exec test-1)],
+                                                  0, [expout])
 AT_CHECK([sh ./test/test-1],                       0, [expout])
 
 # Now using a disabled LINENO, with different call conventions.
 AT_DATA_LINENO([test/test-2.as], [true], [$@&t@LINENO], [LINENO])
 AT_CHECK([autom4te -l m4sh test/test-2.as -o test/test-2])
 AT_CHECK([./test/test-2],                          0, [expout])
-AT_CHECK([PATH=test$PATH_SEPARATOR$PATH test-2],   0, [expout])
+AT_CHECK([(PATH=test$PATH_SEPARATOR$PATH; export PATH; exec test-2)],
+                                                  0, [expout])
 AT_CHECK([sh ./test/test-2],                       0, [expout])
 
 # Beware that *.lineno scripts can be *here* while the masters are in test/.