atexit-tests: ensure reliable exit status
authorEric Blake <eblake@redhat.com>
Tue, 24 May 2011 22:42:37 +0000 (16:42 -0600)
committerIan Beckwith <ianb@erislabs.net>
Thu, 9 Jun 2011 18:52:00 +0000 (19:52 +0100)
This was the only remaining init.sh client that didn't properly
use the 'Exit' function.

* tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
Reported by Bruno Haible.

Signed-off-by: Eric Blake <eblake@redhat.com>
(cherry picked from commit fc9b0f6cfa9e0e148a79e51150c8171d617474f2)

ChangeLog
tests/test-atexit.sh

index 5218311..eee8813 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2011-05-24  Eric Blake  <eblake@redhat.com>
 
+       atexit-tests: ensure reliable exit status
+       * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
+       Reported by Bruno Haible.
+
+2011-05-24  Eric Blake  <eblake@redhat.com>
+
        tests: fix logic bug in init.sh
        * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
        shell.
index 05f23eb..643a72f 100755 (executable)
@@ -25,4 +25,4 @@ if test -f t-atexit.tmp; then
   Exit 1
 fi
 
-exit 0
+Exit 0