From 9fe364a15ae01b30d26f5f90b67f01192c427595 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Fri, 6 Aug 2021 18:53:29 +0100 Subject: test: signal test failure with exit code --- test.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test.c b/test.c index 138284a..c06efe5 100644 --- a/test.c +++ b/test.c @@ -7,6 +7,7 @@ #include #include #include +#include #include "pack.h" @@ -143,6 +144,7 @@ TEST(pack_simple_general, "pack simple general") int main(void) { extern struct test __start_tests, __stop_tests; + int ret = EXIT_SUCCESS; pack_trace = PACK_TRACE_OFF; @@ -157,5 +159,8 @@ int main(void) fprintf(stderr, "<<<\n"); pack_trace = PACK_TRACE_OFF; printf("FAIL %s\n", t->desc); + ret = EXIT_FAILURE; } + + return ret; } -- cgit v1.2.3-54-g00ecf