Don't rely on "PATH=test:$PATH test-1" working

as POSIX requires, as it doesn't work with Zsh.
This commit is contained in:
Paul Eggert 2002-03-25 22:02:24 +00:00
parent 6981c68a4a
commit f07b247b73

View 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/.