tests: protect test libs against multiple inclusion
authorStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 26 Jul 2012 10:21:40 +0000 (12:21 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 26 Jul 2012 12:11:39 +0000 (14:11 +0200)
commitd8b3c5e4b81986b875f56502006288f43aee5159
tree22f8be673deba523de807e249ab64894eb78ffc0
parent60f8b3de17ae8812c8e1fc6dd2eb8fe492aee9c7
tests: protect test libs against multiple inclusion

* t/ax/test-lib.sh, t/ax/am-test-lib.sh: Return early if already sourced.
Use the witness variables '$test_lib_sourced' and '$am_test_lib_sourced',
respectively, for this purpose.
* runtest.in, Makefile.am (AM_TESTS_ENVIRONMENT): Unset 'test_lib_sourced'
and 'am_test_lib_sourced', to avoid interferences from the environment.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Makefile.am
t/ax/am-test-lib.sh
t/ax/test-lib.sh