Issue #189: Eliminate use of MC_ERROR from json_util.c, and add a json_util_get_last_err() function to retrieve the error for those callers that care about it.

Add tests and descriptions for the functions in json_util.c
This commit is contained in:
Eric Haszlakiewicz
2016-06-26 02:20:05 +00:00
parent 595891729e
commit 29ef73f21d
9 changed files with 351 additions and 16 deletions

View File

@@ -4,6 +4,7 @@ LDADD= $(LIBJSON_LA)
LIBJSON_LA=$(top_builddir)/libjson-c.la
TESTS=
TESTS+= test_util_file.test
TESTS+= test1.test
TESTS+= test2.test
TESTS+= test4.test
@@ -32,6 +33,8 @@ check_PROGRAMS += test2Formatted
test2Formatted_SOURCES = test2.c parse_flags.c
test2Formatted_CPPFLAGS = -DTEST_FORMATTED
test_util_file_SOURCES = test_util_file.c strerror_override.c
EXTRA_DIST=
EXTRA_DIST += $(TESTS)