* tests/vartypo2.test, tests/vartypos.test: Rewrite to not use
a command substitution with a nonzero exit status, that causes
IRIX and Tru64/OSF sh to fail the whole test.
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+2011-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ tests: avoid failing command substitution in errexit mode.
+ * tests/vartypo2.test, tests/vartypos.test: Rewrite to not use
+ a command substitution with a nonzero exit status, that causes
+ IRIX and Tru64/OSF sh to fail the whole test.
+
2010-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Coverage and minor fixes for variable typo detection.
# Makefile.am:5: library has `libfoo_la' as canonical name (possible typo)
-test -z "`grep 'as canonical' stderr | grep -v ' .libfoo_la. '`"
+grep 'as canonical' stderr | grep -v ' .libfoo_la. ' && Exit 1
test `grep 'variable.*is defined but' stderr | wc -l` = 6
# If we add a global -Wnone, all warnings should disappear.
# Makefile.am:13: warning: variable `libfoo_a_DEPENDENCIES' is defined but no program or
# Makefile.am:13: library has `libfoo_a' as canonical name (possible typo)
-test -z "`grep 'as canonical' stderr | grep -v ' .foo. ' | grep -v ' .libfoo_a. '`"
+grep 'as canonical' stderr | grep -v ' .foo. ' | grep -v ' .libfoo_a. ' \
+ && Exit 1
test `grep 'variable.*is defined but' stderr | wc -l` = 13
# If we add a global -Wnone, all warnings should disappear.