Statistics
| Branch: | Revision:

root / tests / test-visitor-serialization.c @ 8addacdd

History | View | Annotate | Download (33.3 kB)

# Date Author Comment
089f26bb 05/23/2013 04:44 pm Michael Roth

qapi: fix visitor serialization tests for numbers/doubles

We never actually stored the stringified double values into the strings
before we did the comparisons. This left number/double values completely
uncovered in test-visitor-serialization tests.

Fixing this exposed a bug in our handling of large whole number values...

8addacdd 05/23/2013 04:44 pm Michael Roth

qapi: add native list coverage for visitor serialization tests

Signed-off-by: Michael Roth <>
Reviewed-by: Laszlo Ersek <>
Reviewed-by: Amos Kong <>
Signed-off-by: Luiz Capitulino <>

ad7f375d 05/15/2013 03:58 pm Michael Roth

qapi: fix leak in unit tests

qmp_output_get_qobject() increments the qobject's reference count. Since
we currently pass this straight into qobject_to_json() so we can feed
the data into a QMP input visitor, we never actually free the underlying
qobject when qmp_output_visitor_cleanup() is called. This causes leaks...

2bd01ac1 04/05/2013 03:38 pm Stefan Berger

test-visitor-serialization: Fix some memory leaks

This patch fixes some of the memory leaks in test-visitor-serialization but not all of them.

Signed-off-by: Stefan Berger <>
Signed-off-by: Stefan Hajnoczi <>

7b1b5d19 12/19/2012 09:31 am Paolo Bonzini

qapi: move include files to include/qobject/

Signed-off-by: Paolo Bonzini <>

79ee7df8 12/19/2012 09:31 am Paolo Bonzini

qapi: move inclusions of qemu-common.h from headers to .c files

Signed-off-by: Paolo Bonzini <>

2d496105 06/08/2012 05:11 pm Michael Roth

qapi: Unit tests for visitor-based serialization

Currently we test our visitors individually, and seperately for input
vs. output. This is useful for validating internal representations
against the native C types and vice-versa, and other visitor-specific...

0d30b0a2 06/08/2012 05:11 pm Michael Roth

qapi: Add String visitor coverage to serialization unit tests

Signed-off-by: Michael Roth <>
Signed-off-by: Andreas Färber <>