Code

t/utils/llist_test: Check sdb_llist_create() return value in setup().
authorSebastian Harl <sh@tokkee.org>
Mon, 26 Aug 2013 06:52:28 +0000 (08:52 +0200)
committerSebastian Harl <sh@tokkee.org>
Mon, 26 Aug 2013 06:52:28 +0000 (08:52 +0200)
t/utils/llist_test.c

index 70b7cd349242511bf143b0a9e98b9fc2e19285d1..465341fee9f0b5fe5edad2ba80728621289b05ba 100644 (file)
@@ -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,