From c2e68bff3ddaed09399fc2f9ad269bc20de32aaa Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 13 Oct 2013 12:19:01 +0200 Subject: [PATCH] tests: only test if we have `check` installed There should have been a good reason to put `TESTS` outside the conditional but I don't remember it. It works by putting `TESTS` inside the conditional and avoid an odd error message when trying to execute tests without check installed. --- tests/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index 483df4c5..2abb67b8 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,8 +1,8 @@ AM_CFLAGS = -I $(top_srcdir)/include -TESTS = check_marshal check_lldp check_cdp check_sonmp check_edp check_fixedpoint if HAVE_CHECK +TESTS = check_marshal check_lldp check_cdp check_sonmp check_edp check_fixedpoint AM_CFLAGS += @CHECK_CFLAGS@ LDADD = $(top_builddir)/src/daemon/liblldpd.la @CHECK_LIBS@ @LIBEVENT_LDFLAGS@ -- 2.39.5