mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
tests: Rename virtTestDifferenceBin to virTestDifferenceBin.
This function doesn't follow our convention of naming functions.
This commit is contained in:
parent
b468e8ba0b
commit
65979e5b62
@ -625,10 +625,10 @@ virTestDifference(FILE *stream,
|
|||||||
* Display expected and actual output text, trimmed to
|
* Display expected and actual output text, trimmed to
|
||||||
* first and last characters at which differences occur
|
* first and last characters at which differences occur
|
||||||
*/
|
*/
|
||||||
int virtTestDifferenceBin(FILE *stream,
|
int virTestDifferenceBin(FILE *stream,
|
||||||
const char *expect,
|
const char *expect,
|
||||||
const char *actual,
|
const char *actual,
|
||||||
size_t length)
|
size_t length)
|
||||||
{
|
{
|
||||||
size_t start = 0, end = length;
|
size_t start = 0, end = length;
|
||||||
ssize_t i;
|
ssize_t i;
|
||||||
|
@ -69,10 +69,10 @@ int virTestDifferenceFullNoRegenerate(FILE *stream,
|
|||||||
const char *expectName,
|
const char *expectName,
|
||||||
const char *actual,
|
const char *actual,
|
||||||
const char *actualName);
|
const char *actualName);
|
||||||
int virtTestDifferenceBin(FILE *stream,
|
int virTestDifferenceBin(FILE *stream,
|
||||||
const char *expect,
|
const char *expect,
|
||||||
const char *actual,
|
const char *actual,
|
||||||
size_t length);
|
size_t length);
|
||||||
int virTestCompareToFile(const char *strcontent,
|
int virTestCompareToFile(const char *strcontent,
|
||||||
const char *filename);
|
const char *filename);
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@ static int testMessageHeaderEncode(const void *args ATTRIBUTE_UNUSED)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (memcmp(expect, msg->buffer, sizeof(expect)) != 0) {
|
if (memcmp(expect, msg->buffer, sizeof(expect)) != 0) {
|
||||||
virtTestDifferenceBin(stderr, expect, msg->buffer, sizeof(expect));
|
virTestDifferenceBin(stderr, expect, msg->buffer, sizeof(expect));
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -269,7 +269,7 @@ static int testMessagePayloadEncode(const void *args ATTRIBUTE_UNUSED)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (memcmp(expect, msg->buffer, sizeof(expect)) != 0) {
|
if (memcmp(expect, msg->buffer, sizeof(expect)) != 0) {
|
||||||
virtTestDifferenceBin(stderr, expect, msg->buffer, sizeof(expect));
|
virTestDifferenceBin(stderr, expect, msg->buffer, sizeof(expect));
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -511,7 +511,7 @@ static int testMessagePayloadStreamEncode(const void *args ATTRIBUTE_UNUSED)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (memcmp(expect, msg->buffer, sizeof(expect)) != 0) {
|
if (memcmp(expect, msg->buffer, sizeof(expect)) != 0) {
|
||||||
virtTestDifferenceBin(stderr, expect, msg->buffer, sizeof(expect));
|
virTestDifferenceBin(stderr, expect, msg->buffer, sizeof(expect));
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user