提交 65979e5b 编写于 作者: T Tomáš Ryšavý 提交者: John Ferlan

tests: Rename virtTestDifferenceBin to virTestDifferenceBin.

This function doesn't follow our convention of naming functions.
上级 b468e8ba
...@@ -625,7 +625,7 @@ virTestDifference(FILE *stream, ...@@ -625,7 +625,7 @@ 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)
......
...@@ -69,7 +69,7 @@ int virTestDifferenceFullNoRegenerate(FILE *stream, ...@@ -69,7 +69,7 @@ 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);
......
...@@ -77,7 +77,7 @@ static int testMessageHeaderEncode(const void *args ATTRIBUTE_UNUSED) ...@@ -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) ...@@ -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) ...@@ -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;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册