This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
论坛
实训
竞赛
大数据
AI开发
Register
Sign In
jdk-build-libs
/
json-c
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
11
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
Unset NDEBUG so assert() is enabled in all tests. One more fix there when building with -DCMAKE_BUILD_TYPE=release.
tags/json-c-0.17-20230812
Eric Haszlakiewicz
3 years ago
parent
2f0942bdd7
commit
49c3721a5a
22 changed files
with
67 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
tests/parse_flags.c
+3
-0
tests/test1.c
+3
-0
tests/test2.c
+3
-0
tests/test4.c
+3
-0
tests/testReplaceExisting.c
+3
-0
tests/test_cast.c
+3
-0
tests/test_charcase.c
+3
-0
tests/test_compare.c
+3
-0
tests/test_double_serializer.c
+3
-0
tests/test_float.c
+3
-0
tests/test_int_add.c
+3
-0
tests/test_locale.c
+3
-0
tests/test_null.c
+3
-0
tests/test_object_iterator.c
+4
-0
tests/test_parse.c
+3
-0
tests/test_parse_int64.c
+3
-0
tests/test_printbuf.c
+3
-0
tests/test_set_serializer.c
+3
-0
tests/test_set_value.c
+3
-0
tests/test_strerror.c
+3
-0
tests/test_util_file.c
+3
-0
tests/test_visit.c
+ 3
- 0
tests/parse_flags.c
View File
@@ -1,3 +1,6 @@
#ifdef NDEBUG
#undef NDEBUG
#endif
#include "config.h"
#include <stdio.h>
+ 3
- 0
tests/test1.c
View File
@@ -1,3 +1,6 @@
#ifdef NDEBUG
#undef NDEBUG
#endif
#include <assert.h>
#include <limits.h>
#include <stddef.h>
+ 3
- 0
tests/test2.c
View File
@@ -1,3 +1,6 @@
#ifdef NDEBUG
#undef NDEBUG
#endif
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
+ 3
- 0
tests/test4.c
View File
@@ -2,6 +2,9 @@
* gcc -o utf8 utf8.c -I/home/y/include -L./.libs -ljson
*/
#ifdef NDEBUG
#undef NDEBUG
#endif
#include "config.h"
#include <assert.h>
#include <stdio.h>
+ 3
- 0
tests/testReplaceExisting.c
View File
@@ -1,3 +1,6 @@
#ifdef NDEBUG
#undef NDEBUG
#endif
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
+ 3
- 0
tests/test_cast.c
View File
@@ -3,6 +3,9 @@
* Also checks the json_object_get_type and json_object_is_type functions.
*/
#ifdef NDEBUG
#undef NDEBUG
#endif
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
+ 3
- 0
tests/test_charcase.c
View File
@@ -1,3 +1,6 @@
#ifdef NDEBUG
#undef NDEBUG
#endif
#include <assert.h>
#include <stddef.h>
#include <stdio.h>
+ 3
- 0
tests/test_compare.c
View File
@@ -2,6 +2,9 @@
* Tests if json_object_equal behaves correct.
*/
#ifdef NDEBUG
#undef NDEBUG
#endif
#include "config.h"
#include <stdio.h>
#include <string.h>
+ 3
- 0
tests/test_double_serializer.c
View File
@@ -2,6 +2,9 @@
* Tests if the format string for double serialization is handled correctly
*/
#ifdef NDEBUG
#undef NDEBUG
#endif
#include "config.h"
#include <stdio.h>
+ 3
- 0
tests/test_float.c
View File
@@ -1,5 +1,8 @@
/* Copyright (C) 2016 by Rainer Gerhards
* Released under ASL 2.0 */
#ifdef NDEBUG
#undef NDEBUG
#endif
#include "config.h"
#include "json_object.h"
#include "json_tokener.h"
+ 3
- 0
tests/test_int_add.c
View File
@@ -1,3 +1,6 @@
#ifdef NDEBUG
#undef NDEBUG
#endif
#include <assert.h>
#include <stdio.h>
+ 3
- 0
tests/test_locale.c
View File
@@ -1,3 +1,6 @@
#ifdef NDEBUG
#undef NDEBUG
#endif
#include <assert.h>
#include <stddef.h>
#include <stdio.h>
+ 3
- 0
tests/test_null.c
View File
@@ -2,6 +2,9 @@
* Tests if binary strings are supported.
*/
#ifdef NDEBUG
#undef NDEBUG
#endif
#include "config.h"
#include <stdio.h>
#include <string.h>
+ 3
- 0
tests/test_object_iterator.c
View File
@@ -1,3 +1,6 @@
#ifdef NDEBUG
#undef NDEBUG
#endif
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
+ 4
- 0
tests/test_parse.c
View File
@@ -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)
+ 3
- 0
tests/test_parse_int64.c
View File
@@ -1,4 +1,7 @@
#ifdef NDEBUG
#undef NDEBUG
#endif
#include <stdio.h>
#include <string.h>
+ 3
- 0
tests/test_printbuf.c
View File
@@ -1,3 +1,6 @@
#ifdef NDEBUG
#undef NDEBUG
#endif
#include <assert.h>
#include <limits.h>
#include <stddef.h>
+ 3
- 0
tests/test_set_serializer.c
View File
@@ -1,3 +1,6 @@
#ifdef NDEBUG
#undef NDEBUG
#endif
#include <assert.h>
#include <stdio.h>
#include <string.h>
+ 3
- 0
tests/test_set_value.c
View File
@@ -1,3 +1,6 @@
#ifdef NDEBUG
#undef NDEBUG
#endif
#include <assert.h>
#include <stdio.h>
#include <string.h>
+ 3
- 0
tests/test_strerror.c
View File
@@ -1,3 +1,6 @@
#ifdef NDEBUG
#undef NDEBUG
#endif
#include "strerror_override.h"
#include "strerror_override_private.h"
+ 3
- 0
tests/test_util_file.c
View File
@@ -1,3 +1,6 @@
#ifdef NDEBUG
#undef NDEBUG
#endif
#include "strerror_override.h"
#include "strerror_override_private.h"
#ifdef WIN32
+ 3
- 0
tests/test_visit.c
View File
@@ -1,3 +1,6 @@
#ifdef NDEBUG
#undef NDEBUG
#endif
#include <assert.h>
#include <stddef.h>
#include <stdio.h>
Write
Preview
Loading…
Cancel
Save