mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 17:34:18 +03:00
tests: qemublock: Rename variables in anticipation of new tests
New tests will add new data structures so rename the 'data' structure. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
parent
e17193acd2
commit
21498975d1
@ -117,15 +117,16 @@ static int
|
|||||||
mymain(void)
|
mymain(void)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
struct testBackingXMLjsonXMLdata data;
|
struct testBackingXMLjsonXMLdata xmljsonxmldata;
|
||||||
|
|
||||||
virTestCounterReset("qemu storage source xml->json->xml ");
|
virTestCounterReset("qemu storage source xml->json->xml ");
|
||||||
|
|
||||||
#define TEST_JSON_FORMAT(tpe, xmlstr) \
|
#define TEST_JSON_FORMAT(tpe, xmlstr) \
|
||||||
do { \
|
do { \
|
||||||
data.type = tpe; \
|
xmljsonxmldata.type = tpe; \
|
||||||
data.xml = xmlstr; \
|
xmljsonxmldata.xml = xmlstr; \
|
||||||
if (virTestRun(virTestCounterNext(), testBackingXMLjsonXML, &data) < 0) \
|
if (virTestRun(virTestCounterNext(), testBackingXMLjsonXML, \
|
||||||
|
&xmljsonxmldata) < 0) \
|
||||||
ret = -1; \
|
ret = -1; \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user