From 733cd3d8445f65e25ec8bdb507fa6dda2dbcb985 Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Wed, 10 Nov 2010 23:49:32 +0100 Subject: [PATCH] Tests defs: do not use `Exit' where plain `exit' suffices. * tests/defs.in: Use "exit 77" rather than "Exit 77" to skip the test when required libtool/gettext macros are not found, since such skips would take place before the exit trap is installed. --- ChangeLog | 5 +++++ tests/defs.in | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5761e9f..edd2406 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2010-11-10 Stefano Lattarini + Tests defs: do not use `Exit' where plain `exit' suffices. + * tests/defs.in: Use "exit 77" rather than "Exit 77" to skip the + test when required libtool/gettext macros are not found, since + such skips would take place before the exit trap is installed. + Tests defs: improve and extends comments. * tests/defs.in: Improve and extends some comments, especially in relation with the changes introduced by the previous reordering. diff --git a/tests/defs.in b/tests/defs.in index 022b2a5..dd42e0f 100644 --- a/tests/defs.in +++ b/tests/defs.in @@ -390,8 +390,8 @@ case " $required " in fi done case " $required " in - *' libtool '* | *' libtoolize '* ) test $libtool_found = yes || Exit 77;; - *' gettext '* ) test $gettext_found = yes || Exit 77;; + *' libtool '* | *' libtoolize '* ) test $libtool_found = yes || exit 77;; + *' gettext '* ) test $gettext_found = yes || exit 77;; esac # Libtool cannot cope with spaces in the build tree. Our testsuite setup # cannot cope with spaces in the source tree name for Libtool and gettext @@ -399,7 +399,7 @@ case " $required " in # temporary subdirectory where the test will be run is ensured not to # contain any space. case $testsrcdir,`pwd` in - *\ * | *\ *) Exit 77;; + *\ * | *\ *) exit 77;; esac ACLOCAL="$ACLOCAL -Wno-syntax -I $top_testsrcdir/m4 $extra_includes -I $aclocaldir" ;; -- 2.7.4