Re: [Qemu-devel] [PATCH 4/5] tests/test-vmstate.c: test array of ptr with null

2017-02-21 Thread Halil Pasic
On 02/21/2017 11:49 AM, Dr. David Alan Gilbert wrote: >> +static void test_arr_ptr_str_0_save(void) >> +{ >> +TestStructTriv ar[AR_SIZE] = {{.i = 0}, {.i = 1}, {.i = 2}, {.i = 3} }; >> +TestArrayOfPtrToStuct sample = {.ar = {&ar[0], NULL, &ar[2], &ar[3]} }; >> +uint8_t wire_sample[] =

Re: [Qemu-devel] [PATCH 4/5] tests/test-vmstate.c: test array of ptr with null

2017-02-21 Thread Dr. David Alan Gilbert
* Halil Pasic (pa...@linux.vnet.ibm.com) wrote: > Add test for VMSTATE_ARRAY_OF_POINTER_TO_STRUCT with an array > containing some null pointer. > > Signed-off-by: Halil Pasic > Reviewed-by: Dr. David Alan Gilbert > --- > tests/test-vmstate.c | 51