History | View | Annotate | Download (19.9 kB)
Fix qjson test of solidus encoding
"\/" is supposed to be decoded as "/", but there is no need to encode"/" via escape. Fix the existing test and add a second one expressingthis.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>Acked-by: Michael Roth <mdroth@linux.vnet.ibm.com>...
Silence compiler warning in json test case
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 staging
Move stdbool.h
Move inclusion of stdbool.h to common header files, instead of includingin an ad-hoc manner.
Signed-off-by: Paul Brook <paul@codesourcery.com>
check-qjson: Add more escape tests
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>
add some tests for invalid JSON
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Add test suite for json marshalling
By reusing the qjson test suite. After checking that we can demarshal, marshalagain and compared to the expected decoded value. This doesn't work so wellfor floats because they cannot be accurately represented in decimal but we...
Add a unit test for JSON support
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>