Code

t/: Use ck_assert() instead of assert() in all tests.
[sysdb.git] / t / unit / core / store_json_test.c
index 704ad067fc52d9fba04a8ea5bbe901a3013583c6..b69573c45fde0afd0b90ab5db4402f225eb9ac00 100644 (file)
@@ -32,8 +32,6 @@
 #include "core/store.h"
 #include "testutils.h"
 
 #include "core/store.h"
 #include "testutils.h"
 
-#include <assert.h>
-
 #include <check.h>
 #include <stdlib.h>
 
 #include <check.h>
 #include <stdlib.h>
 
@@ -466,7 +464,7 @@ START_TEST(test_store_tojson)
        sdb_strbuf_clear(buf);
        f = sdb_store_json_formatter(buf,
                        store_tojson_data[_i].type, SDB_WANT_ARRAY);
        sdb_strbuf_clear(buf);
        f = sdb_store_json_formatter(buf,
                        store_tojson_data[_i].type, SDB_WANT_ARRAY);
-       assert(f);
+       ck_assert(f != NULL);
 
        status = sdb_store_scan(store_tojson_data[_i].type,
                        /* m = */ NULL, filter, store_tojson_data[_i].f, f);
 
        status = sdb_store_scan(store_tojson_data[_i].type,
                        /* m = */ NULL, filter, store_tojson_data[_i].f, f);