tests: avoid a spurious failure on NetBSD
authorStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 18 Dec 2012 11:20:23 +0000 (12:20 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 18 Dec 2012 13:47:39 +0000 (14:47 +0100)
* t/tags-pr12372.sh (configure.ac): AC_SUBST the LINK variable to a
dummy invocation, to avoid possible errors from make or the linker;
errors we do not care about in the least in this test.
(Makefile.am, sub/Makefile.am): Remove LINK definitions; simply
inherit that in configure.ac.

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

index e232d5f..2e20322 100755 (executable)
@@ -23,6 +23,9 @@ required='cc etags'
 cat >> configure.ac <<'END'
 AC_PROG_CC
 AC_CONFIG_FILES([sub/Makefile])
+# Fake linking.  Help avoid possible spurious errors from make
+# or from the linker; errors that are irrelevant to this test.
+AC_SUBST([LINK], ['echo $(CCLD) $(CFLAGS) $(LDFLAGS) -o $@'])
 AC_OUTPUT
 END
 
@@ -33,7 +36,6 @@ all-local: tags
        $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) -c $*.c
        rm -f $*.c
 
-LINK = $(CCLD) $(CFLAGS) $(LDFLAGS) -o $@
 noinst_PROGRAMS = foo
 foo_SOURCES = foo-main.pc barbar.c
 SUBDIRS = sub
@@ -47,7 +49,6 @@ all-local: tags
        $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) -c $*.c
        rm -f $*.c
 
-LINK = $(CCLD) $(CFLAGS) $(LDFLAGS) -o $@
 noinst_PROGRAMS = zap
 zap_SOURCES = zardoz.pc
 END