diff options
Diffstat (limited to 'test/assert-tests.c')
-rw-r--r-- | test/assert-tests.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/test/assert-tests.c b/test/assert-tests.c index 4fca036..1b97814 100644 --- a/test/assert-tests.c +++ b/test/assert-tests.c @@ -22,16 +22,27 @@ START_TEST (test_nslayout_layout_create_aborts1) } END_TEST +/* TODO: Test for each individual param being NULL. */ +START_TEST (test_nslayout_layout_destroy_aborts1) +{ + (void) nslayout_layout_destroy(NULL); +} +END_TEST + void nslayout_assert_suite(SRunner *sr) { Suite *s = suite_create("libnslayout: API Assert tests"); - TCase *tc_assert = tcase_create("Creation/Destruction"); + TCase *tc_assert = tcase_create("Creation/Destruction"); tcase_add_test_raise_signal( tc_assert, test_nslayout_layout_create_aborts1, SIGABRT); + tcase_add_test_raise_signal( + tc_assert, + test_nslayout_layout_destroy_aborts1, + SIGABRT); suite_add_tcase(s, tc_assert); srunner_add_suite(sr, s); |