automake-patches
[Top][All Lists]
Advanced

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

[PATCH 2/2] Bugfix in confh5.test w.r.t. Solaris/Heirloom Sh.


From: Stefano Lattarini
Subject: [PATCH 2/2] Bugfix in confh5.test w.r.t. Solaris/Heirloom Sh.
Date: Fri, 9 Apr 2010 17:11:44 +0200
User-agent: KMail/1.12.1 (Linux/2.6.30-2-686; KDE/4.3.2; i686; ; )

* tests/confh5.test: In the generated Makefile.am: do not use
`test ! -e FILE' to check for the non-existence of a file, since
that is not supported by Solarish/Heirloom Sh.

From c2711ecf6dd5c82f9d9819f5da8427caf8ad1d0e Mon Sep 17 00:00:00 2001
From: Stefano Lattarini <address@hidden>
Date: Fri, 9 Apr 2010 16:58:27 +0200
Subject: [PATCH 2/2] Bugfix in confh5.test w.r.t. Solaris/Heirloom Sh.

* tests/confh5.test: In the generated Makefile.am: do not use
`test ! -e FILE' to check for the non-existence of a file, since
that is not supported by Solarish/Heirloom Sh.
---
 ChangeLog         |    5 +++++
 tests/confh5.test |    4 +++-
 2 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 27da4aa..d91fe60 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2010-04-09  Stefano Lattarini  <address@hidden>
 
+       Bugfix in confh5.test w.r.t. Solaris/Heirloom Sh.
+       * tests/confh5.test: In the generated Makefile.am: do not use
+       `test ! -e FILE' to check for the non-existence of a file, since
+       that is not supported by Solarish/Heirloom Sh.
+
        Avoid possible false negatives in confh5.test.
        * tests/confh5.test: Enable shell `errexit' flag, and bumped
        copyright years.  Due to this change, any unexpected failure
diff --git a/tests/confh5.test b/tests/confh5.test
index c81f3a3..ed60e0c 100755
--- a/tests/confh5.test
+++ b/tests/confh5.test
@@ -32,7 +32,9 @@ cat > Makefile.am << 'END'
 test: distdir
        test -f $(distdir)/config.h.in
        test -f $(distdir)/include/config.h.in.in
-       test ! -e $(distdir)/include/config.h.in
+       : # Solarish Sh do not support 'test -e'
+       test ! -f $(distdir)/include/config.h.in
+       test ! -r $(distdir)/include/config.h.in
 END
 
 mkdir include
-- 
1.6.5


reply via email to

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