bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/3] atexit-tests: ensure reliable exit status


From: Eric Blake
Subject: [PATCH 1/3] atexit-tests: ensure reliable exit status
Date: Tue, 24 May 2011 17:30:46 -0600

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 <address@hidden>
---

> Shouldn't this patch also be applied to tests/test-atexit.sh?
> It's the first test that uses init.sh (in alphabetical order), therefore
> people might want to use it as a template.

Yes.  And in fact, it was the only one that wasn't properly using 'Exit'.

While I was in the area, I also converted a couple other tests.

 ChangeLog            |    6 ++++++
 tests/test-atexit.sh |    2 +-
 2 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 1f0ac8b..31b9c15 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-05-24  Eric Blake  <address@hidden>
+
+       atexit-tests: ensure reliable exit status
+       * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
+       Reported by Bruno Haible.
+
 2011-05-24  Bruno Haible  <address@hidden>

        strerror_r-posix: Respect rules for use of AC_LIBOBJ.
diff --git a/tests/test-atexit.sh b/tests/test-atexit.sh
index 05f23eb..643a72f 100755
--- a/tests/test-atexit.sh
+++ b/tests/test-atexit.sh
@@ -25,4 +25,4 @@ if test -f t-atexit.tmp; then
   Exit 1
 fi

-exit 0
+Exit 0
-- 
1.7.4.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]