提交 1ff86b40 编写于 作者: T Tomáš Ryšavý 提交者: John Ferlan

tests: Rename virtTestQuiesceLibvirtErrors to virTestQuiesceLibvirtErrors.

This function doesn't follow our convention of naming functions.
上级 c2f36506
...@@ -245,7 +245,7 @@ mymain(void) ...@@ -245,7 +245,7 @@ mymain(void)
{ {
int result = 0; int result = 0;
virtTestQuiesceLibvirtErrors(true); virTestQuiesceLibvirtErrors(true);
# define DO_TEST(_name) \ # define DO_TEST(_name) \
do { \ do { \
......
...@@ -279,7 +279,7 @@ mymain(void) ...@@ -279,7 +279,7 @@ mymain(void)
return EXIT_FAILURE; return EXIT_FAILURE;
} }
virtTestQuiesceLibvirtErrors(false); virTestQuiesceLibvirtErrors(false);
if (virTestRun("Assign metadata ", testAssignMetadata, &test) < 0) if (virTestRun("Assign metadata ", testAssignMetadata, &test) < 0)
ret = EXIT_FAILURE; ret = EXIT_FAILURE;
......
...@@ -546,7 +546,7 @@ mymain(void) ...@@ -546,7 +546,7 @@ mymain(void)
if (!(test.conn = virConnectOpen("test:///default"))) if (!(test.conn = virConnectOpen("test:///default")))
return EXIT_FAILURE; return EXIT_FAILURE;
virtTestQuiesceLibvirtErrors(false); virTestQuiesceLibvirtErrors(false);
/* Domain event tests */ /* Domain event tests */
if (virTestRun("Domain createXML start event (old API)", if (virTestRun("Domain createXML start event (old API)",
......
...@@ -272,7 +272,7 @@ mymain(void) ...@@ -272,7 +272,7 @@ mymain(void)
* register a handler to stop error messages cluttering * register a handler to stop error messages cluttering
* up display * up display
*/ */
virtTestQuiesceLibvirtErrors(false); virTestQuiesceLibvirtErrors(false);
#define DO_TEST_PARSE_AND_FORMAT(addrstr, family, pass) \ #define DO_TEST_PARSE_AND_FORMAT(addrstr, family, pass) \
do { \ do { \
......
...@@ -726,7 +726,7 @@ virtTestErrorFuncQuiet(void *data ATTRIBUTE_UNUSED, ...@@ -726,7 +726,7 @@ virtTestErrorFuncQuiet(void *data ATTRIBUTE_UNUSED,
/* register an error handler in tests when using connections */ /* register an error handler in tests when using connections */
void void
virtTestQuiesceLibvirtErrors(bool always) virTestQuiesceLibvirtErrors(bool always)
{ {
if (always || !virTestGetVerbose()) if (always || !virTestGetVerbose())
virSetErrorFunc(NULL, virtTestErrorFuncQuiet); virSetErrorFunc(NULL, virtTestErrorFuncQuiet);
......
...@@ -95,7 +95,7 @@ unsigned int virTestGetRegenerate(void); ...@@ -95,7 +95,7 @@ unsigned int virTestGetRegenerate(void);
char *virTestLogContentAndReset(void); char *virTestLogContentAndReset(void);
void virtTestQuiesceLibvirtErrors(bool always); void virTestQuiesceLibvirtErrors(bool always);
void virTestCounterReset(const char *prefix); void virTestCounterReset(const char *prefix);
const char *virtTestCounterNext(void); const char *virtTestCounterNext(void);
......
...@@ -263,7 +263,7 @@ mymain(void) ...@@ -263,7 +263,7 @@ mymain(void)
{ {
int result = 0; int result = 0;
virtTestQuiesceLibvirtErrors(true); virTestQuiesceLibvirtErrors(true);
#define DO_TEST(_name) \ #define DO_TEST(_name) \
do { \ do { \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册