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

14
tests/test_util_file.test Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/sh
# Common definitions
if test -z "$srcdir"; then
srcdir="${0%/*}"
test "$srcdir" = "$0" && srcdir=.
test -z "$srcdir" && srcdir=.
fi
. "$srcdir/test-defs.sh"
run_output_test test_util_file "$srcdir"
_err=$?
exit $_err