From 21d4959e60b1466992a13a75b310efad0ba11a46 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Mon, 29 Apr 2013 12:44:53 +1000 Subject: [PATCH] test/lib: Hook into `make check` This change hooks the new list tests into 'make check'. To do this, we need to fix the return code of the list-test program. Signed-off-by: Jeremy Kerr --- test/lib/Makefile.am | 3 ++- test/lib/list-test.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/test/lib/Makefile.am b/test/lib/Makefile.am index 56fea5e..5a3a34a 100644 --- a/test/lib/Makefile.am +++ b/test/lib/Makefile.am @@ -25,6 +25,7 @@ AM_CFLAGS = \ list_test_SOURCES = list-test.c list_test_LDADD = ../../lib/libpbcore.la -noinst_PROGRAMS = list-test +check_PROGRAMS = list-test +TESTS = list-test MAINTAINERCLEANFILES = Makefile.in diff --git a/test/lib/list-test.c b/test/lib/list-test.c index b4ef7ab..de629ee 100644 --- a/test/lib/list-test.c +++ b/test/lib/list-test.c @@ -67,5 +67,5 @@ int main(void) } fprintf(stderr, "-- done --\n"); - return -1; + return EXIT_SUCCESS; } -- 2.39.2