From fc60262b2c79165003d5ffd8b15daa7f61b5b0d2 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Mon, 26 Aug 2013 08:52:28 +0200 Subject: [PATCH] t/utils/llist_test: Check sdb_llist_create() return value in setup(). --- t/utils/llist_test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/t/utils/llist_test.c b/t/utils/llist_test.c index 70b7cd3..465341f 100644 --- a/t/utils/llist_test.c +++ b/t/utils/llist_test.c @@ -56,6 +56,8 @@ static void setup(void) { list = sdb_llist_create(); + fail_unless(list != NULL, + "sdb_llist_create() = NULL; expected list object"); } /* setup */ static void @@ -87,7 +89,7 @@ START_TEST(test_clone) clone = sdb_llist_clone(list); fail_unless(clone != NULL, - "sdb_llist_clone() = NULL; expected: !NULL"); + "sdb_llist_clone() = NULL; expected: cloned list object"); for (i = 0; i < SDB_STATIC_ARRAY_LEN(golden_data); ++i) { fail_unless(golden_data[i].ref_cnt == 3, -- 2.30.2