Test dbuf_take_fail aborting in DEBUG mode

This commit is contained in:
Nils O. Selåsdal
2013-12-07 12:23:30 +01:00
parent 6a8ba36c23
commit f18de5f269
+5
View File
@@ -1,5 +1,6 @@
#include <check.h>
#include <string.h>
#include <signal.h>
#include <ucore/dbuf.h>
@@ -88,7 +89,11 @@ Suite *dbuf_suite(void)
Suite *s = suite_create("dbuf");
TCase *tc = tcase_create("dbuf tests");
tcase_add_test(tc, test_dbuf);
#ifdef DEBUG
tcase_add_test_raise_signal(tc, test_dbuf_take_fail, SIGABRT);
#else
tcase_add_test(tc, test_dbuf_take_fail);
#endif
suite_add_tcase(s, tc);