summaryrefslogtreecommitdiffstats
path: root/check-qjson.c
Commit message (Collapse)AuthorAgeFilesLines
* check-qjson: enable disabled testsAnthony Liguori2012-01-121-5/+0
| | | | | | gtest does the right thing here so there's no need to comment these tests out. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* check-qjson: convert to gtestAnthony Liguori2012-01-121-196/+134
| | | | Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Fix qjson test of solidus encodingJan Kiszka2011-09-061-1/+2
| | | | | | | | | | "\/" is supposed to be decoded as "/", but there is no need to encode "/" via escape. Fix the existing test and add a second one expressing this. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Acked-by: Michael Roth <mdroth@linux.vnet.ibm.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
* Silence compiler warning in json test caseJan Kiszka2010-10-221-1/+3
| | | | | | | | | This avoids error: zero-length gnu_printf format string Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
* Merge remote branch 'qmp/for-anthony' into stagingAnthony Liguori2010-06-141-3/+109
|\
| * add some tests for invalid JSONPaolo Bonzini2010-06-111-1/+97
| | | | | | | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
| * check-qjson: Add more escape testsLuiz Capitulino2010-06-111-2/+12
| | | | | | | | | | | | | | | | While there make the fail_unless() calls print error messages. IMPORTANT: The test for "\/" is failing, don't know why. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
* | Move stdbool.hPaul Brook2010-06-131-1/+0
|/ | | | | | | Move inclusion of stdbool.h to common header files, instead of including in an ad-hoc manner. Signed-off-by: Paul Brook <paul@codesourcery.com>
* Add test suite for json marshallingAnthony Liguori2009-11-171-5/+75
| | | | | | | | | By reusing the qjson test suite. After checking that we can demarshal, marshal again and compared to the expected decoded value. This doesn't work so well for floats because they cannot be accurately represented in decimal but we try our best. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Add a unit test for JSON supportAnthony Liguori2009-11-171-0/+617
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
OpenPOWER on IntegriCloud