From: Ralf Wildenhues Date: Sun, 6 Jun 2010 12:20:29 +0000 (+0200) Subject: Improve ext.test semantics, avoid OpenBSD sh errexit issue. X-Git-Tag: v1.11.1b~80^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=121470109ab5ff5b7a4dc89f1b2916c6d4931c21;p=thirdparty%2Fautomake.git Improve ext.test semantics, avoid OpenBSD sh errexit issue. * tests/ext.test: Inside shell compound command, use `if $cmd; then Exit 1; fi' rather than `$cmd && Exit 1', to fix failure with OpenBSD sh introduced with last patch. Actually ensure that a rule for .EXT.o is created for each known extension EXT. Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index 86a6e92a3..a2db01b74 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2010-06-06 Ralf Wildenhues + + Improve ext.test semantics, avoid OpenBSD sh errexit issue. + * tests/ext.test: Inside shell compound command, use + `if $cmd; then Exit 1; fi' rather than `$cmd && Exit 1', to + fix failure with OpenBSD sh introduced with last patch. + Actually ensure that a rule for .EXT.o is created for each + known extension EXT. + 2010-06-06 Stefano Lattarini Enable `errexit' shell flag in some test scripts. diff --git a/tests/ext.test b/tests/ext.test index ef877b0da..934067390 100755 --- a/tests/ext.test +++ b/tests/ext.test @@ -38,6 +38,7 @@ $AUTOMAKE for ext in f for f90 f95 F F90 F95 r m upc do - grep "^$ext\.o:" Makefile.in && Exit 1 + if grep "^$ext\.o:" Makefile.in; then Exit 1; else :; fi + grep "^\.$ext\.o:" Makefile.in done Exit 0