]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: adjust for warnings that have been moved to GNU make runtime
authorStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 30 Apr 2013 17:30:45 +0000 (19:30 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 30 Apr 2013 17:31:43 +0000 (19:31 +0200)
Some of those warnings are given at automake runtime in mainline
Automake, and some tests were relying on that behaviour, thus causing
spurious testsuite failures.

* t/proc-errmsg.sh: Adjust accordingly.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
t/preproc-errmsg.sh

index 704562dcd418c74266c1e64a9b41c4bd0b0ac8cb..fd428c119385be1c5f919d5b291ab7472765a9a9 100755 (executable)
@@ -30,7 +30,7 @@ END
 mkdir sub sub/sub2
 
 cat > Makefile.am <<'END'
-%canon_reldir%_x1_SOURCES = bar.c
+%canon_reldir%_UNDEFINED_0 +=
 include sub/local.mk
 END
 
@@ -38,7 +38,7 @@ cat > sub/local.mk <<'END'
 AUTOMAKE_OPTIONS = -Wno-extra-portability
 include %D%/sub2/more.mk
 noinst_LIBRARIES = %reldir%-one.a %D%-two.a
-%C%_x2_SOURCES = foo.c
+%C%_UNDEFINED_1 +=
 END
 
 cat > sub/sub2/more.mk <<'END'
@@ -49,20 +49,18 @@ $ACLOCAL
 AUTOMAKE_fails
 
 cat > expected << 'END'
+Makefile.am:1: UNDEFINED_0 must be set with '=' before using '+='
 sub/sub2/more.mk:1: sub_sub2_UNDEFINED must be set with '=' before using '+='
 Makefile.am:2: 'sub/local.mk' included from here
 sub/local.mk:2: 'sub/sub2/more.mk' included from here
+sub/local.mk:4: sub_UNDEFINED_1 must be set with '=' before using '+='
+Makefile.am:2: 'sub/local.mk' included from here
 sub/local.mk:3: 'sub-one.a' is not a standard library name
 sub/local.mk:3: did you mean 'libsub-one.a'?
 Makefile.am:2: 'sub/local.mk' included from here
 sub/local.mk:3: 'sub-two.a' is not a standard library name
 sub/local.mk:3: did you mean 'libsub-two.a'?
 Makefile.am:2: 'sub/local.mk' included from here
-Makefile.am:1: variable 'x1_SOURCES' is defined but no program or
-Makefile.am:1: library has 'x1' as canonical name (possible typo)
-sub/local.mk:4: variable 'sub_x2_SOURCES' is defined but no program or
-sub/local.mk:4: library has 'sub_x2' as canonical name (possible typo)
-Makefile.am:2: 'sub/local.mk' included from here
 END
 
 # We need to break these substitutions into multiple sed invocations