Statistics
| Branch: | Revision:

root / check-qjson.c @ 93148aa5

History | View | Annotate | Download (18.7 kB)

# Date Author Comment
ef76dc59 01/12/2012 06:05 pm Anthony Liguori

check-qjson: convert to gtest

Signed-off-by: Anthony Liguori <>

38273e1d 01/12/2012 06:05 pm Anthony Liguori

check-qjson: enable disabled tests

gtest does the right thing here so there's no need to comment these tests out.

Signed-off-by: Anthony Liguori <>

69faeee1 09/06/2011 04:15 pm Jan Kiszka

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 expressing
this.

Signed-off-by: Jan Kiszka <>
Acked-by: Michael Roth <>...

e7a06af8 10/22/2010 03:08 pm Jan Kiszka

Silence compiler warning in json test case

This avoids

error: zero-length gnu_printf format string

Signed-off-by: Jan Kiszka <>
Signed-off-by: Luiz Capitulino <>

a2da0395 06/14/2010 05:39 pm Anthony Liguori

Merge remote branch 'qmp/for-anthony' into staging

11165820 06/13/2010 09:00 pm Paul Brook

Move stdbool.h

Move inclusion of stdbool.h to common header files, instead of including
in an ad-hoc manner.

Signed-off-by: Paul Brook <>

d22b0bd7 06/11/2010 09:25 pm Luiz Capitulino

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 <>

7f8fca7c 06/11/2010 09:25 pm Paolo Bonzini

add some tests for invalid JSON

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Luiz Capitulino <>

6ee59202 11/17/2009 04:49 pm Anthony Liguori

Add test suite for json marshalling

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...

422c46a8 11/17/2009 04:49 pm Anthony Liguori

Add a unit test for JSON support

Signed-off-by: Anthony Liguori <>