提交 21498975 编写于 作者: P Peter Krempa

tests: qemublock: Rename variables in anticipation of new tests

New tests will add new data structures so rename the 'data' structure.
Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
上级 e17193ac
......@@ -117,15 +117,16 @@ static int
mymain(void)
{
int ret = 0;
struct testBackingXMLjsonXMLdata data;
struct testBackingXMLjsonXMLdata xmljsonxmldata;
virTestCounterReset("qemu storage source xml->json->xml ");
#define TEST_JSON_FORMAT(tpe, xmlstr) \
do { \
data.type = tpe; \
data.xml = xmlstr; \
if (virTestRun(virTestCounterNext(), testBackingXMLjsonXML, &data) < 0) \
xmljsonxmldata.type = tpe; \
xmljsonxmldata.xml = xmlstr; \
if (virTestRun(virTestCounterNext(), testBackingXMLjsonXML, \
&xmljsonxmldata) < 0) \
ret = -1; \
} while (0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册