From: Stefano Lattarini Date: Tue, 18 Dec 2012 11:20:23 +0000 (+0100) Subject: tests: avoid a spurious failure on NetBSD X-Git-Tag: v1.12b~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fb214402c043a70581f19d4856a81362a5a1a0d6;p=platform%2Fupstream%2Fautomake.git tests: avoid a spurious failure on NetBSD * 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 --- diff --git a/t/tags-pr12372.sh b/t/tags-pr12372.sh index e232d5f..2e20322 100755 --- a/t/tags-pr12372.sh +++ b/t/tags-pr12372.sh @@ -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