mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
tests: utils: Add virTestLoadFilePath helper
This new helper loads and returns a file from 'abs_srcdir'. By using variable arguments for the function, it's not necessary to format the path separately in the test cases. Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
@@ -52,6 +52,8 @@ int virTestRun(const char *title,
|
||||
int (*body)(const void *data),
|
||||
const void *data);
|
||||
int virTestLoadFile(const char *file, char **buf);
|
||||
char *virTestLoadFilePath(const char *p, ...)
|
||||
ATTRIBUTE_SENTINEL;
|
||||
int virTestCaptureProgramOutput(const char *const argv[], char **buf, int maxlen);
|
||||
|
||||
void virTestClearCommandPath(char *cmdset);
|
||||
|
||||
Reference in New Issue
Block a user