mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Rename virtTestLoadFile to virTestLoadFile.
This function doesn't follow our convention of naming functions.
This commit is contained in:
committed by
John Ferlan
parent
062ea148a0
commit
401bb813bd
@@ -294,7 +294,7 @@ virTestRun(const char *title,
|
||||
Upon any failure, diagnose it and return -1, but don't bother trying
|
||||
to preserve errno. Otherwise, return the number of bytes copied into BUF. */
|
||||
int
|
||||
virtTestLoadFile(const char *file, char **buf)
|
||||
virTestLoadFile(const char *file, char **buf)
|
||||
{
|
||||
FILE *fp = fopen(file, "r");
|
||||
struct stat st;
|
||||
@@ -693,7 +693,7 @@ virtTestCompareToFile(const char *strcontent,
|
||||
char *filecontent = NULL;
|
||||
char *fixedcontent = NULL;
|
||||
|
||||
if (virtTestLoadFile(filename, &filecontent) < 0 && !virTestGetRegenerate())
|
||||
if (virTestLoadFile(filename, &filecontent) < 0 && !virTestGetRegenerate())
|
||||
goto failure;
|
||||
|
||||
if (filecontent &&
|
||||
|
||||
Reference in New Issue
Block a user