mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-20 11:35:19 +00:00
tests: Rename virtTestCounterReset to virTestCounterReset.
This function doesn't follow our convention of naming functions.
This commit is contained in:
parent
8a48cf6efa
commit
327b844341
@ -80,7 +80,7 @@ mymain(void)
|
|||||||
return EXIT_AM_SKIP;
|
return EXIT_AM_SKIP;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
virtTestCounterReset("testQemuCommandBuildObjectFromJSON");
|
virTestCounterReset("testQemuCommandBuildObjectFromJSON");
|
||||||
|
|
||||||
#define DO_TEST_COMMAND_OBJECT_FROM_JSON(PROPS, EXPECT) \
|
#define DO_TEST_COMMAND_OBJECT_FROM_JSON(PROPS, EXPECT) \
|
||||||
do { \
|
do { \
|
||||||
|
@ -1170,7 +1170,7 @@ static char *virtTestCounterPrefixEndOffset;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* virtTestCounterReset:
|
* virTestCounterReset:
|
||||||
* @prefix: name of the test group
|
* @prefix: name of the test group
|
||||||
*
|
*
|
||||||
* Resets the counter and sets up the test group name to use with
|
* Resets the counter and sets up the test group name to use with
|
||||||
@ -1180,7 +1180,7 @@ static char *virtTestCounterPrefixEndOffset;
|
|||||||
* case names (including the number index) will be silently truncated.
|
* case names (including the number index) will be silently truncated.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
virtTestCounterReset(const char *prefix)
|
virTestCounterReset(const char *prefix)
|
||||||
{
|
{
|
||||||
virtTestCounter = 0;
|
virtTestCounter = 0;
|
||||||
|
|
||||||
@ -1196,7 +1196,7 @@ virtTestCounterReset(const char *prefix)
|
|||||||
* a way to do automagic test case numbering.
|
* a way to do automagic test case numbering.
|
||||||
*
|
*
|
||||||
* Returns string consisting of test name prefix configured via
|
* Returns string consisting of test name prefix configured via
|
||||||
* virtTestCounterReset() and a number that increments in every call of this
|
* virTestCounterReset() and a number that increments in every call of this
|
||||||
* function. This function is not thread safe.
|
* function. This function is not thread safe.
|
||||||
*
|
*
|
||||||
* Note: The buffer for the assembled message is 128 bytes long. Longer test
|
* Note: The buffer for the assembled message is 128 bytes long. Longer test
|
||||||
|
@ -97,7 +97,7 @@ char *virtTestLogContentAndReset(void);
|
|||||||
|
|
||||||
void virtTestQuiesceLibvirtErrors(bool always);
|
void virtTestQuiesceLibvirtErrors(bool always);
|
||||||
|
|
||||||
void virtTestCounterReset(const char *prefix);
|
void virTestCounterReset(const char *prefix);
|
||||||
const char *virtTestCounterNext(void);
|
const char *virtTestCounterNext(void);
|
||||||
|
|
||||||
int virtTestMain(int argc,
|
int virtTestMain(int argc,
|
||||||
|
@ -675,7 +675,7 @@ mymain(void)
|
|||||||
if (virTestRun("test10", test10, NULL) < 0)
|
if (virTestRun("test10", test10, NULL) < 0)
|
||||||
ret = -1;
|
ret = -1;
|
||||||
|
|
||||||
virtTestCounterReset("test11-");
|
virTestCounterReset("test11-");
|
||||||
TESTBINARYOP("0", "0", "0,^0", test11);
|
TESTBINARYOP("0", "0", "0,^0", test11);
|
||||||
TESTBINARYOP("0-3", "0", "1-3", test11);
|
TESTBINARYOP("0-3", "0", "1-3", test11);
|
||||||
TESTBINARYOP("0-3", "0,3", "1-2", test11);
|
TESTBINARYOP("0-3", "0,3", "1-2", test11);
|
||||||
|
@ -167,7 +167,7 @@ mymain(void)
|
|||||||
|
|
||||||
#define DO_TEST_SANITIZE_PATH_SAME(PATH) DO_TEST_SANITIZE_PATH(PATH, PATH)
|
#define DO_TEST_SANITIZE_PATH_SAME(PATH) DO_TEST_SANITIZE_PATH(PATH, PATH)
|
||||||
|
|
||||||
virtTestCounterReset("testFileSanitizePath ");
|
virTestCounterReset("testFileSanitizePath ");
|
||||||
DO_TEST_SANITIZE_PATH("", "");
|
DO_TEST_SANITIZE_PATH("", "");
|
||||||
DO_TEST_SANITIZE_PATH("/", "/");
|
DO_TEST_SANITIZE_PATH("/", "/");
|
||||||
DO_TEST_SANITIZE_PATH("/path", "/path");
|
DO_TEST_SANITIZE_PATH("/path", "/path");
|
||||||
|
@ -708,7 +708,7 @@ mymain(void)
|
|||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
/* The actual tests, in several groups. */
|
/* The actual tests, in several groups. */
|
||||||
virtTestCounterReset("Storage backing chain ");
|
virTestCounterReset("Storage backing chain ");
|
||||||
|
|
||||||
/* Missing file */
|
/* Missing file */
|
||||||
TEST_ONE_CHAIN("bogus", VIR_STORAGE_FILE_RAW, EXP_FAIL);
|
TEST_ONE_CHAIN("bogus", VIR_STORAGE_FILE_RAW, EXP_FAIL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user