summaryrefslogtreecommitdiff
path: root/tests/cond24.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cond24.test')
-rwxr-xr-xtests/cond24.test7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/cond24.test b/tests/cond24.test
index 7bfa89f58..11f8d8701 100755
--- a/tests/cond24.test
+++ b/tests/cond24.test
@@ -22,15 +22,18 @@
cat >>configure.in <<EOF
AC_SUBST([foo], [bar])
AM_CONDITIONAL([COND], [true])
-AC_OUTPUT
EOF
cat >Makefile.am <<EOF
if COND
+## A dummy comment to change line numer.
foo = baz
endif
EOF
$ACLOCAL
AUTOMAKE_fails
-grep 'foo was already defined' stderr
+grep '^Makefile\.am:3:.* foo was already defined' stderr
+grep '^configure\.in:4:.*foo.* previously defined here' stderr
+
+: