From 1a22cb32d6c2c385e6ab3d838c818b7057b29f6b Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Sat, 27 Oct 2012 18:22:58 +0200 Subject: tests: prefer including 'test-init.sh' rather than './defs' This is a follow-up to today's same-name commit v1.12.4-181-g5ddf100, which did the same for the test cases in master. * All tests: To run the common setup, use the command: . test-init.sh instead of the older, "historical" one: . ./defs || exit 1 Note that the "|| exit 1" wasn't really useful, since the 'errexit' shell flag is in effect in both './defs' and 'test-init.sh', and all the known shells that are good enough to run the automake testsuite do automatically exit with error when a sourced file cannot be found (at least, they do so in non-interactive mode, which is the only mode that concerns us in the testsuite). Signed-off-by: Stefano Lattarini --- t/subobj-c.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't/subobj-c.sh') diff --git a/t/subobj-c.sh b/t/subobj-c.sh index eafecaf75..03964a3ce 100755 --- a/t/subobj-c.sh +++ b/t/subobj-c.sh @@ -18,7 +18,7 @@ # Keep in sync with sister test 'subobj-cxx.sh'. required=cc -. ./defs || exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC -- cgit v1.2.1