Test JSON output of malloc_stats_print() and fix bugs.

Implement and test a JSON validation parser.  Use the parser to validate
JSON output from malloc_stats_print(), with a significant subset of
supported output options.

This resolves #583.
This commit is contained in:
Jason Evans
2017-01-18 01:01:19 -08:00
parent 61d26425e5
commit 54d2d697b2
3 changed files with 1035 additions and 27 deletions

View File

@@ -186,6 +186,7 @@ TESTS_UNIT := \
$(srcroot)test/unit/size_classes.c \
$(srcroot)test/unit/smoothstep.c \
$(srcroot)test/unit/stats.c \
$(srcroot)test/unit/stats_print.c \
$(srcroot)test/unit/ticker.c \
$(srcroot)test/unit/nstime.c \
$(srcroot)test/unit/tsd.c \