Tests defs: do not use `Exit' where plain `exit' suffices.
authorStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 10 Nov 2010 22:49:32 +0000 (23:49 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 10 Nov 2010 22:57:43 +0000 (23:57 +0100)
* 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
tests/defs.in

index 5761e9f..edd2406 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2010-11-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
 
+       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.
index 022b2a5..dd42e0f 100644 (file)
@@ -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"
     ;;