diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-04-29 12:44:53 +1000 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-04-29 12:44:53 +1000 |
commit | 21d4959e60b1466992a13a75b310efad0ba11a46 (patch) | |
tree | d5c996969d99d0ea26b504c198397567ebe3da98 /test | |
parent | 359f12f9eb0440294a8be1b78ade1b69926d2896 (diff) | |
download | talos-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>
Diffstat (limited to 'test')
-rw-r--r-- | test/lib/Makefile.am | 3 | ||||
-rw-r--r-- | 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; } |