>From fcfae8d37dea52ea201662ff9c756330be0d653b Mon Sep 17 00:00:00 2001
From: Pavel Raiskup
Date: Sat, 9 Feb 2013 07:52:09 +0100
Subject: [PATCH] tests: Command 'aclocal -Inon-existent' should warn
Check that this command just warns and does not fail.
See:
* t/aclocal-macrodir.tap: Check for proper return value and do not handle
warnings as errors.
---
t/aclocal-macrodir.tap | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/t/aclocal-macrodir.tap b/t/aclocal-macrodir.tap
index 3c66e53..f989640 100755
--- a/t/aclocal-macrodir.tap
+++ b/t/aclocal-macrodir.tap
@@ -157,14 +157,14 @@ test_end
#---------------------------------------------------------------------------
-test_begin "AC_CONFIG_MACRO_DIR([non-existent]) errors out (1)"
+test_begin "AC_CONFIG_MACRO_DIR([non-existent]) warns but succeeds (0)"
cat > configure.ac << 'END'
AC_INIT([oops], [1.0])
AC_CONFIG_MACRO_DIR([non-existent])
END
-not $ACLOCAL -Wnone 2>stderr \
+$ACLOCAL -Wno-error 2>stderr \
&& cat stderr >&2 \
&& grep "couldn't open directory 'non-existent'" stderr \
|| r='not ok'
--
1.7.11.7