From: Sebastian Harl Date: Mon, 26 Aug 2013 06:52:28 +0000 (+0200) Subject: t/utils/llist_test: Check sdb_llist_create() return value in setup(). X-Git-Tag: sysdb-0.1.0~369 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=fc60262b2c79165003d5ffd8b15daa7f61b5b0d2;p=sysdb.git t/utils/llist_test: Check sdb_llist_create() return value in setup(). --- 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,