summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-04-29 12:44:53 +1000
committerJeremy Kerr <jk@ozlabs.org>2013-04-29 12:44:53 +1000
commit21d4959e60b1466992a13a75b310efad0ba11a46 (patch)
treed5c996969d99d0ea26b504c198397567ebe3da98
parent359f12f9eb0440294a8be1b78ade1b69926d2896 (diff)
downloadtalos-petitboot-21d4959e60b1466992a13a75b310efad0ba11a46.tar.gz
talos-petitboot-21d4959e60b1466992a13a75b310efad0ba11a46.zip
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 <jk@ozlabs.org>
-rw-r--r--test/lib/Makefile.am3
-rw-r--r--test/lib/list-test.c2
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;
}
OpenPOWER on IntegriCloud