]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Add test case for parsing JSON docs
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 30 Jun 2011 14:08:29 +0000 (15:08 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 30 Jun 2011 17:04:02 +0000 (18:04 +0100)
commit06da1805bf934f9d47b56fc3ca7404fb4a909512
tree40f32bab754b196b09ec8a90c1355f9e39cca8fa
parente44bec2e344139bc5efafb6a8c820cf8ef3740bd
Add test case for parsing JSON docs

While investigating some memory leaks it was unclear whether the
JSON code correctly free'd all memory during parsing. Add a test
case which can be run under valgrind to clearly demonstrate that
the parser is leak free.

* tests/Makefile.am: Add 'jsontest'
* tests/jsontest.c: A few simple JSON parsing tests
tests/Makefile.am
tests/jsontest.c [new file with mode: 0644]