From 220011751067ce8a74e475bfa0909ce094ddcfd0 Mon Sep 17 00:00:00 2001 From: brarcher Date: Sat, 4 Jan 2014 18:33:53 +0000 Subject: [PATCH] add test for check_list_advance(NULL) There had been no test yet for this case. git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1018 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- tests/check_list.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/check_list.c b/tests/check_list.c index 058ceef..502f5f2 100644 --- a/tests/check_list.c +++ b/tests/check_list.c @@ -132,6 +132,13 @@ START_TEST(test_add_a_bunch) } END_TEST +START_TEST(test_list_abuse) +{ + check_list_advance(NULL); + /* Should not crash */ +} +END_TEST + Suite *make_list_suite (void) { @@ -146,5 +153,7 @@ Suite *make_list_suite (void) tcase_add_test (tc, test_add_end_and_next); tcase_add_test (tc, test_add_front_and_next); tcase_add_test (tc, test_add_a_bunch); + tcase_add_test (tc, test_list_abuse); + return s; } -- 2.40.0