+Thu May 29 15:41:00 EST 2008 Daniel P. Berrange <berrange@redhat.com>
+
+ * tests/testutils.c: Fix warning when OOM testing is disabled
+
Thu May 29 15:25:00 EST 2008 Daniel P. Berrange <berrange@redhat.com>
* configure.in, scripts/*: Remove all coverage helper scripts
return 0;
}
+#if TEST_OOM
static void
virtTestErrorFuncQuiet(void *data ATTRIBUTE_UNUSED,
virErrorPtr err ATTRIBUTE_UNUSED)
{ }
+#endif
+#if TEST_OOM_TRACE
static void
virtTestErrorHook(int n, void *data ATTRIBUTE_UNUSED)
{
-#if TEST_OOM_TRACE
void *trace[30];
int ntrace = ARRAY_CARDINALITY(trace);
int i;
}
free(symbols);
}
-#endif
}
+#endif
int virtTestMain(int argc,
if (ret != EXIT_SUCCESS)
return EXIT_FAILURE;
+#if TEST_OOM_TRACE
if (testDebug)
virAllocTestHook(virtTestErrorHook, NULL);
-
+#endif
if (testOOM) {
/* Makes next test runs quiet... */