mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
tests: Rename virtTestCaptureProgramOutput to virTestCaptureProgramOutput.
This function doesn't follow our convention of naming functions.
This commit is contained in:
parent
65979e5b62
commit
75f7309468
@ -396,7 +396,7 @@ void virTestCaptureProgramExecChild(const char *const argv[],
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
virtTestCaptureProgramOutput(const char *const argv[], char **buf, int maxlen)
|
virTestCaptureProgramOutput(const char *const argv[], char **buf, int maxlen)
|
||||||
{
|
{
|
||||||
int pipefd[2];
|
int pipefd[2];
|
||||||
int len;
|
int len;
|
||||||
@ -428,9 +428,9 @@ virtTestCaptureProgramOutput(const char *const argv[], char **buf, int maxlen)
|
|||||||
}
|
}
|
||||||
#else /* !WIN32 */
|
#else /* !WIN32 */
|
||||||
int
|
int
|
||||||
virtTestCaptureProgramOutput(const char *const argv[] ATTRIBUTE_UNUSED,
|
virTestCaptureProgramOutput(const char *const argv[] ATTRIBUTE_UNUSED,
|
||||||
char **buf ATTRIBUTE_UNUSED,
|
char **buf ATTRIBUTE_UNUSED,
|
||||||
int maxlen ATTRIBUTE_UNUSED)
|
int maxlen ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,7 @@ int virTestRun(const char *title,
|
|||||||
int (*body)(const void *data),
|
int (*body)(const void *data),
|
||||||
const void *data);
|
const void *data);
|
||||||
int virTestLoadFile(const char *file, char **buf);
|
int virTestLoadFile(const char *file, char **buf);
|
||||||
int virtTestCaptureProgramOutput(const char *const argv[], char **buf, int maxlen);
|
int virTestCaptureProgramOutput(const char *const argv[], char **buf, int maxlen);
|
||||||
|
|
||||||
void virTestClearCommandPath(char *cmdset);
|
void virTestClearCommandPath(char *cmdset);
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ testCompareOutputLit(const char *expectData,
|
|||||||
int result = -1;
|
int result = -1;
|
||||||
char *actualData = NULL;
|
char *actualData = NULL;
|
||||||
|
|
||||||
if (virtTestCaptureProgramOutput(argv, &actualData, 4096) < 0)
|
if (virTestCaptureProgramOutput(argv, &actualData, 4096) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
if (filter && testFilterLine(actualData, filter) < 0)
|
if (filter && testFilterLine(actualData, filter) < 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user