aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test.c b/test.c
index 138284a..c06efe5 100644
--- a/test.c
+++ b/test.c
@@ -7,6 +7,7 @@
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
+#include <stdlib.h>
#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;
}