mirror of
https://github.com/json-c/json-c.git
synced 2026-04-03 20:39:07 +08:00
Unset NDEBUG so assert() is enabled in all tests. One more fix there when building with -DCMAKE_BUILD_TYPE=release.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
#ifdef NDEBUG
|
||||
#undef NDEBUG
|
||||
#endif
|
||||
#include <assert.h>
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
@@ -42,6 +45,7 @@ static void single_incremental_parse(const char *test_string, int clear_serializ
|
||||
json_object *all_at_once_obj, *new_obj;
|
||||
const char *all_at_once_str, *new_str;
|
||||
|
||||
new_obj = NULL;
|
||||
assert(chunksize > 0);
|
||||
all_at_once_obj = json_tokener_parse(test_string);
|
||||
if (clear_serializer)
|
||||
|
||||
Reference in New Issue
Block a user