]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
maintcheck: fix spurious failure w.r.t. use of bare "exit"
authorStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 5 Aug 2011 12:27:12 +0000 (14:27 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 5 Aug 2011 12:27:12 +0000 (14:27 +0200)
* tests/check12.test: Cosmetic changes to avoid triggering a
spurious failure of the `sc_tests_Exit_not_exit' maintainer
check.

ChangeLog
tests/check12.test

index 0c36417286d820ab72a97edc86ffa32d4b97c80f..234206003bbb660626758968882abd85e2d72362 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-08-05  Stefano Lattarini  <stefano.lattarini@gmail.com>
+
+       maintcheck: fix spurious failure w.r.t. use of bare "exit"
+       * tests/check12.test: Cosmetic changes to avoid triggering a
+       spurious failure of the `sc_tests_Exit_not_exit' maintainer
+       check.
+
 2011-08-05  Stefano Lattarini  <stefano.lattarini@gmail.com>
 
        check: update comments to reflect recent heavy changes
index 27d61f6ca7b269c928608c28ba4ee2be8a2a4dc8..e36a94da3962e52cf5cdb368d8dc36368cd46d43 100755 (executable)
@@ -34,12 +34,12 @@ END
 
 cat > a.test << 'END'
 #!/bin/sh
-echo a.test: exit ${A_EXIT_STATUS-0}
+echo a.test: exit status: ${A_EXIT_STATUS-0}
 exit ${A_EXIT_STATUS-0}
 END
 cat > b.test << 'END'
 #!/bin/sh
-echo b.test: exit ${B_EXIT_STATUS-0}
+echo b.test: exit status: ${B_EXIT_STATUS-0}
 exit ${B_EXIT_STATUS-0}
 END
 chmod +x a.test b.test
@@ -174,10 +174,10 @@ for vpath in : false; do
     cat test-suite.log
     cat a.log
     cat b.log
-    grep '^a\.test: exit 0$' a.log
-    grep '^b\.test: exit 1$' b.log
+    grep '^a\.test: exit status: 0$' a.log
+    grep '^b\.test: exit status: 1$' b.log
     grep '^FAIL: b$' test-suite.log
-    grep '^b\.test: exit 1$' test-suite.log
+    grep '^b\.test: exit status: 1$' test-suite.log
     grep '^a\.test' test-suite.log && Exit 1
   else :; fi
 
@@ -197,10 +197,10 @@ for vpath in : false; do
     cat test-suite.log
     cat a.log
     cat b.log
-    grep '^a\.test: exit 0$' a.log
-    grep '^b\.test: exit 23$' b.log
+    grep '^a\.test: exit status: 0$' a.log
+    grep '^b\.test: exit status: 23$' b.log
     grep '^FAIL: b$' test-suite.log
-    grep '^b\.test: exit 23$' test-suite.log
+    grep '^b\.test: exit status: 23$' test-suite.log
     grep '^a\.test' test-suite.log && Exit 1
   else :; fi
   grep 'check-local failed :-(' local.log