From 753edcb3a44daaaf6a6015f32ad462f61c86e679 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ry=C5=A1av=C3=BD?= Date: Thu, 26 May 2016 17:01:54 +0200 Subject: [PATCH] Rename virtTestDifferenceFull to virTestDifferenceFull. This function doesn't follow our convention of naming functions. --- tests/domainsnapshotxml2xmltest.c | 2 +- tests/interfacexml2xmltest.c | 2 +- tests/nodedevxml2xmltest.c | 2 +- tests/qemuhotplugtest.c | 6 +++--- tests/testutils.c | 16 ++++++++-------- tests/testutils.h | 10 +++++----- 6 files changed, 19 insertions(+), 19 deletions(-) diff --git a/tests/domainsnapshotxml2xmltest.c b/tests/domainsnapshotxml2xmltest.c index 8195e22e30..650c56532d 100644 --- a/tests/domainsnapshotxml2xmltest.c +++ b/tests/domainsnapshotxml2xmltest.c @@ -114,7 +114,7 @@ testCompareXMLToXMLFiles(const char *inxml, } if (STRNEQ(outXmlData, actual)) { - virtTestDifferenceFull(stderr, outXmlData, outxml, actual, inxml); + virTestDifferenceFull(stderr, outXmlData, outxml, actual, inxml); goto cleanup; } diff --git a/tests/interfacexml2xmltest.c b/tests/interfacexml2xmltest.c index a2ebf16b0a..5e3525e440 100644 --- a/tests/interfacexml2xmltest.c +++ b/tests/interfacexml2xmltest.c @@ -34,7 +34,7 @@ testCompareXMLToXMLFiles(const char *xml) goto fail; if (STRNEQ(xmlData, actual)) { - virtTestDifferenceFull(stderr, xmlData, xml, actual, NULL); + virTestDifferenceFull(stderr, xmlData, xml, actual, NULL); goto fail; } diff --git a/tests/nodedevxml2xmltest.c b/tests/nodedevxml2xmltest.c index cd8bf8a93e..eb32dd31d2 100644 --- a/tests/nodedevxml2xmltest.c +++ b/tests/nodedevxml2xmltest.c @@ -34,7 +34,7 @@ testCompareXMLToXMLFiles(const char *xml) goto fail; if (STRNEQ(xmlData, actual)) { - virtTestDifferenceFull(stderr, xmlData, xml, actual, NULL); + virTestDifferenceFull(stderr, xmlData, xml, actual, NULL); goto fail; } diff --git a/tests/qemuhotplugtest.c b/tests/qemuhotplugtest.c index 68279d0c2a..447fb75fd6 100644 --- a/tests/qemuhotplugtest.c +++ b/tests/qemuhotplugtest.c @@ -192,9 +192,9 @@ testQemuHotplugCheckResult(virDomainObjPtr vm, ret = 0; } else { if (!fail) - virtTestDifferenceFull(stderr, - expected, expectedFile, - actual, NULL); + virTestDifferenceFull(stderr, + expected, expectedFile, + actual, NULL); ret = -1; } diff --git a/tests/testutils.c b/tests/testutils.c index 0de048486a..081ed8bf99 100644 --- a/tests/testutils.c +++ b/tests/testutils.c @@ -565,11 +565,11 @@ virtTestDifferenceFullInternal(FILE *stream, * regenerate the expected file. */ int -virtTestDifferenceFull(FILE *stream, - const char *expect, - const char *expectName, - const char *actual, - const char *actualName) +virTestDifferenceFull(FILE *stream, + const char *expect, + const char *expectName, + const char *actual, + const char *actualName) { return virtTestDifferenceFullInternal(stream, expect, expectName, actual, actualName, true); @@ -705,9 +705,9 @@ virTestCompareToFile(const char *strcontent, if (STRNEQ_NULLABLE(fixedcontent ? fixedcontent : strcontent, filecontent)) { - virtTestDifferenceFull(stderr, - filecontent, filename, - strcontent, NULL); + virTestDifferenceFull(stderr, + filecontent, filename, + strcontent, NULL); goto failure; } diff --git a/tests/testutils.h b/tests/testutils.h index 350401b243..d9f92b5115 100644 --- a/tests/testutils.h +++ b/tests/testutils.h @@ -59,11 +59,11 @@ void virtTestClearCommandPath(char *cmdset); int virTestDifference(FILE *stream, const char *expect, const char *actual); -int virtTestDifferenceFull(FILE *stream, - const char *expect, - const char *expectName, - const char *actual, - const char *actualName); +int virTestDifferenceFull(FILE *stream, + const char *expect, + const char *expectName, + const char *actual, + const char *actualName); int virtTestDifferenceFullNoRegenerate(FILE *stream, const char *expect, const char *expectName, -- GitLab