From 8a48cf6efa3036d1dba36fe93f4232a27387a4d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ry=C5=A1av=C3=BD?= Date: Thu, 26 May 2016 17:01:56 +0200 Subject: [PATCH] tests: Rename virtTest00MActive to virTest00MActive. This function doesn't follow our convention of naming functions. --- tests/qemuargv2xmltest.c | 2 +- tests/qemuxml2argvtest.c | 2 +- tests/testutils.c | 2 +- tests/testutils.h | 2 +- tests/virfirewalltest.c | 8 ++++---- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/qemuargv2xmltest.c b/tests/qemuargv2xmltest.c index 25f0a693a8..3b5707fc5d 100644 --- a/tests/qemuargv2xmltest.c +++ b/tests/qemuargv2xmltest.c @@ -69,7 +69,7 @@ static int testCompareXMLToArgvFiles(const char *xmlfile, cmd, NULL, NULL, NULL))) goto fail; - if (!virtTestOOMActive()) { + if (!virTestOOMActive()) { if ((log = virtTestLogContentAndReset()) == NULL) goto fail; if (flags & FLAG_EXPECT_WARNING) { diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c index 4776cc75dd..695d2acfd0 100644 --- a/tests/qemuxml2argvtest.c +++ b/tests/qemuxml2argvtest.c @@ -351,7 +351,7 @@ static int testCompareXMLToArgvFiles(const char *xml, VIR_TEST_DEBUG("Error expected but there wasn't any.\n"); goto out; } - if (!virtTestOOMActive()) { + if (!virTestOOMActive()) { if (flags & FLAG_EXPECT_FAILURE) { if ((log = virtTestLogContentAndReset())) VIR_TEST_DEBUG("Got expected error: \n%s", log); diff --git a/tests/testutils.c b/tests/testutils.c index e643fb21bf..4a44d6a4a2 100644 --- a/tests/testutils.c +++ b/tests/testutils.c @@ -84,7 +84,7 @@ static size_t testEnd; char *progname; -bool virtTestOOMActive(void) +bool virTestOOMActive(void) { return testOOMActive; } diff --git a/tests/testutils.h b/tests/testutils.h index 77a5d259c0..d395120ffe 100644 --- a/tests/testutils.h +++ b/tests/testutils.h @@ -46,7 +46,7 @@ extern char *progname; # error Fix Makefile.am # endif -bool virtTestOOMActive(void); +bool virTestOOMActive(void); int virTestRun(const char *title, int (*body)(const void *data), diff --git a/tests/virfirewalltest.c b/tests/virfirewalltest.c index 338f714c3b..6f4fed5ce3 100644 --- a/tests/virfirewalltest.c +++ b/tests/virfirewalltest.c @@ -611,7 +611,7 @@ testFirewallNoRollback(const void *opaque ATTRIBUTE_UNUSED) goto cleanup; } - if (virtTestOOMActive()) + if (virTestOOMActive()) goto cleanup; if (virBufferError(&cmdbuf)) @@ -701,7 +701,7 @@ testFirewallSingleRollback(const void *opaque ATTRIBUTE_UNUSED) goto cleanup; } - if (virtTestOOMActive()) + if (virTestOOMActive()) goto cleanup; if (virBufferError(&cmdbuf)) @@ -794,7 +794,7 @@ testFirewallManyRollback(const void *opaque ATTRIBUTE_UNUSED) goto cleanup; } - if (virtTestOOMActive()) + if (virTestOOMActive()) goto cleanup; if (virBufferError(&cmdbuf)) @@ -917,7 +917,7 @@ testFirewallChainedRollback(const void *opaque ATTRIBUTE_UNUSED) goto cleanup; } - if (virtTestOOMActive()) + if (virTestOOMActive()) goto cleanup; if (virBufferError(&cmdbuf)) -- GitLab