]> git.ipfire.org Git - thirdparty/automake.git/commit
tests: fix automatic re-execution of tests with Zsh
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 23 Jun 2012 11:42:10 +0000 (13:42 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 23 Jun 2012 11:54:10 +0000 (13:54 +0200)
commit3a7149594efc4ae7cd9f2b362baecde9d94e13f5
tree6a60659d10f5c64e77dab5291f2be5487f4af75a
parent76fea2de5fa1e2f240e744ab067acb6db98480f7
tests: fix automatic re-execution of tests with Zsh

* defs: Use '$argv0' instead of '$0'.  With Zsh not started right
away in Bourne-compatibility mode, the latter will be the path not
of the test script itself, but of the file it's currently sourcing
-- i.e., in our case, './defs'.  This would cause the automatic
re-execution code to execute './defs' (basically a no-op) rather
than re-run the test correctly.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
defs