From 7973c0efdf2c600e1268303eda9524d6df0ed1e0 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Tue, 16 Feb 2016 10:55:24 -0500 Subject: [PATCH] tests: qemuargv2xml: Remove unneeded XML blanking None of the test cases depend on dropping these XML bits --- tests/qemuargv2xmltest.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/qemuargv2xmltest.c b/tests/qemuargv2xmltest.c index 6671be4f9b..f07818a4f2 100644 --- a/tests/qemuargv2xmltest.c +++ b/tests/qemuargv2xmltest.c @@ -23,14 +23,11 @@ static virQEMUDriver driver; static int blankProblemElements(char *data) { - if (virtTestClearLineRegex("[[:alnum:]]+", data) < 0 || - virtTestClearLineRegex("([[:alnum:]]|-)+", data) < 0 || + if (virtTestClearLineRegex("([[:alnum:]]|-)+", data) < 0 || virtTestClearLineRegex("[[:digit:]]+", data) < 0 || virtTestClearLineRegex("", data) < 0 || virtTestClearLineRegex("[[:digit:]]+", - data) < 0 || - virtTestClearLineRegex("", data) < 0 || - virtTestClearLineRegex("", data) < 0) + data) < 0) return -1; return 0; }