mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
Rename virtTestDifferenceFull to virTestDifferenceFull.
This function doesn't follow our convention of naming functions.
This commit is contained in:
parent
239caffb1d
commit
753edcb3a4
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user