Re: [libvirt] [PATCH 3/3] virjsontest: switch AddAndRemove tests to work with files

2019-02-13 Thread Andrea Bolognani
On Tue, 2019-02-12 at 16:57 +0100, Ján Tomko wrote: [...] > +++ b/tests/virjsontest.c > @@ -114,12 +114,24 @@ static int > testJSONAddRemove(const void *data) > { > const struct testInfo *info = data; > -virJSONValuePtr json; > +virJSONValuePtr json = NULL; > virJSONValuePtr

[libvirt] [PATCH 3/3] virjsontest: switch AddAndRemove tests to work with files

2019-02-12 Thread Ján Tomko
Instead of using JSON in C strings, put it in separate files for easier manipulation. Signed-off-by: Ján Tomko --- tests/virjsondata/add-remove-failure-in.json | 1 + tests/virjsondata/add-remove-success-in.json | 1 + tests/virjsondata/add-remove-success-out.json | 1 +