summaryrefslogtreecommitdiff
path: root/tests/networkxml2conftest.c
diff options
context:
space:
mode:
authorMichal Privoznik <mprivozn@redhat.com>2013-06-07 10:37:25 +0200
committerMichal Privoznik <mprivozn@redhat.com>2013-07-10 11:07:31 +0200
commit8290cbbc389c339b5a5ee603ed79d4c7389922ed (patch)
treea0f40d8dab2d57d15f985b51579dea684d37c186 /tests/networkxml2conftest.c
parent1cdaebf2370c2c333581979ca2959095b6ed9f84 (diff)
downloadlibvirt-8290cbbc389c339b5a5ee603ed79d4c7389922ed.tar.gz
viralloc: Report OOM error on failure
Similarly to VIR_STRDUP, we want the OOM error to be reported in VIR_ALLOC and friends.
Diffstat (limited to 'tests/networkxml2conftest.c')
-rw-r--r--tests/networkxml2conftest.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/networkxml2conftest.c b/tests/networkxml2conftest.c
index 520febacef..b234b306a8 100644
--- a/tests/networkxml2conftest.c
+++ b/tests/networkxml2conftest.c
@@ -16,6 +16,8 @@
#include "network/bridge_driver.h"
#include "virstring.h"
+#define VIR_FROM_THIS VIR_FROM_NONE
+
static int
testCompareXMLToConfFiles(const char *inxml, const char *outconf, dnsmasqCapsPtr caps)
{