mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 17:34:18 +03:00
tests: Rename virtTestClearCommandPath to virTestClearCommandPath.
This function doesn't follow our convention of naming functions.
This commit is contained in:
parent
753edcb3a4
commit
8a9bd034c2
@ -65,7 +65,7 @@ static int testCompareXMLToArgvFiles(const char *xml,
|
||||
goto cleanup;
|
||||
|
||||
actualargv = virBufferContentAndReset(&buf);
|
||||
virtTestClearCommandPath(actualargv);
|
||||
virTestClearCommandPath(actualargv);
|
||||
virCommandSetDryRun(NULL, NULL, NULL);
|
||||
|
||||
if (virTestCompareToFile(actualargv, cmdline) < 0)
|
||||
|
@ -113,7 +113,7 @@ testNWFilterEBIPTablesAllTeardown(const void *opaque ATTRIBUTE_UNUSED)
|
||||
goto cleanup;
|
||||
|
||||
actual = virBufferContentAndReset(&buf);
|
||||
virtTestClearCommandPath(actual);
|
||||
virTestClearCommandPath(actual);
|
||||
|
||||
if (STRNEQ_NULLABLE(actual, expected)) {
|
||||
virTestDifference(stderr, expected, actual);
|
||||
@ -184,7 +184,7 @@ testNWFilterEBIPTablesTearOldRules(const void *opaque ATTRIBUTE_UNUSED)
|
||||
goto cleanup;
|
||||
|
||||
actual = virBufferContentAndReset(&buf);
|
||||
virtTestClearCommandPath(actual);
|
||||
virTestClearCommandPath(actual);
|
||||
|
||||
if (STRNEQ_NULLABLE(actual, expected)) {
|
||||
virTestDifference(stderr, expected, actual);
|
||||
@ -233,7 +233,7 @@ testNWFilterEBIPTablesRemoveBasicRules(const void *opaque ATTRIBUTE_UNUSED)
|
||||
goto cleanup;
|
||||
|
||||
actual = virBufferContentAndReset(&buf);
|
||||
virtTestClearCommandPath(actual);
|
||||
virTestClearCommandPath(actual);
|
||||
|
||||
if (STRNEQ_NULLABLE(actual, expected)) {
|
||||
virTestDifference(stderr, expected, actual);
|
||||
@ -267,7 +267,7 @@ testNWFilterEBIPTablesTearNewRules(const void *opaque ATTRIBUTE_UNUSED)
|
||||
goto cleanup;
|
||||
|
||||
actual = virBufferContentAndReset(&buf);
|
||||
virtTestClearCommandPath(actual);
|
||||
virTestClearCommandPath(actual);
|
||||
|
||||
if (STRNEQ_NULLABLE(actual, expected)) {
|
||||
virTestDifference(stderr, expected, actual);
|
||||
@ -339,7 +339,7 @@ testNWFilterEBIPTablesApplyBasicRules(const void *opaque ATTRIBUTE_UNUSED)
|
||||
goto cleanup;
|
||||
|
||||
actual = virBufferContentAndReset(&buf);
|
||||
virtTestClearCommandPath(actual);
|
||||
virTestClearCommandPath(actual);
|
||||
|
||||
if (STRNEQ_NULLABLE(actual, expected)) {
|
||||
virTestDifference(stderr, expected, actual);
|
||||
@ -429,7 +429,7 @@ testNWFilterEBIPTablesApplyDHCPOnlyRules(const void *opaque ATTRIBUTE_UNUSED)
|
||||
goto cleanup;
|
||||
|
||||
actual = virBufferContentAndReset(&buf);
|
||||
virtTestClearCommandPath(actual);
|
||||
virTestClearCommandPath(actual);
|
||||
|
||||
if (STRNEQ_NULLABLE(actual, expected)) {
|
||||
virTestDifference(stderr, expected, actual);
|
||||
@ -502,7 +502,7 @@ testNWFilterEBIPTablesApplyDropAllRules(const void *opaque ATTRIBUTE_UNUSED)
|
||||
goto cleanup;
|
||||
|
||||
actual = virBufferContentAndReset(&buf);
|
||||
virtTestClearCommandPath(actual);
|
||||
virTestClearCommandPath(actual);
|
||||
|
||||
if (STRNEQ_NULLABLE(actual, expected)) {
|
||||
virTestDifference(stderr, expected, actual);
|
||||
|
@ -400,7 +400,7 @@ static int testCompareXMLToArgvFiles(const char *xml,
|
||||
goto cleanup;
|
||||
|
||||
actualargv = virBufferContentAndReset(&buf);
|
||||
virtTestClearCommandPath(actualargv);
|
||||
virTestClearCommandPath(actualargv);
|
||||
virCommandSetDryRun(NULL, NULL, NULL);
|
||||
|
||||
testRemoveCommonRules(actualargv);
|
||||
|
@ -1008,7 +1008,7 @@ int virtTestMain(int argc,
|
||||
* iptables --table filter --insert FORWARD --out-interface virbr0 --jump REJECT
|
||||
* iptables --table filter --insert FORWARD --in-interface virbr0 --out-interface virbr0 --jump ACCEPT"
|
||||
*/
|
||||
void virtTestClearCommandPath(char *cmdset)
|
||||
void virTestClearCommandPath(char *cmdset)
|
||||
{
|
||||
size_t offset = 0;
|
||||
char *lineStart = cmdset;
|
||||
|
@ -54,7 +54,7 @@ int virTestRun(const char *title,
|
||||
int virTestLoadFile(const char *file, char **buf);
|
||||
int virtTestCaptureProgramOutput(const char *const argv[], char **buf, int maxlen);
|
||||
|
||||
void virtTestClearCommandPath(char *cmdset);
|
||||
void virTestClearCommandPath(char *cmdset);
|
||||
|
||||
int virTestDifference(FILE *stream,
|
||||
const char *expect,
|
||||
|
Loading…
Reference in New Issue
Block a user