diff options
author | Michal Privoznik <mprivozn@redhat.com> | 2013-07-04 12:20:21 +0200 |
---|---|---|
committer | Michal Privoznik <mprivozn@redhat.com> | 2013-07-10 11:07:33 +0200 |
commit | 3ea84b9548aba33cfa253b370bc6fd949a96c781 (patch) | |
tree | b472d651cc4eed26a8a3a5dc3585bead4a95ead6 /tests/securityselinuxtest.c | |
parent | 36844c9112726d5b00121aa1836e40e350001bd1 (diff) | |
download | libvirt-3ea84b9548aba33cfa253b370bc6fd949a96c781.tar.gz |
Adapt to VIR_ALLOC and virAsprintf in tests/*
Diffstat (limited to 'tests/securityselinuxtest.c')
-rw-r--r-- | tests/securityselinuxtest.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/securityselinuxtest.c b/tests/securityselinuxtest.c index 8d85c68700..e2806c1685 100644 --- a/tests/securityselinuxtest.c +++ b/tests/securityselinuxtest.c @@ -69,13 +69,13 @@ testBuildDomainDef(bool dynamic, virSecurityLabelDefPtr secdef; if (VIR_ALLOC(def) < 0) - goto no_memory; + goto error; if (VIR_ALLOC_N(def->seclabels, 1) < 0) - goto no_memory; + goto error; if (VIR_ALLOC(secdef) < 0) - goto no_memory; + goto error; def->virtType = VIR_DOMAIN_VIRT_KVM; def->seclabels[0] = secdef; @@ -91,8 +91,6 @@ testBuildDomainDef(bool dynamic, return def; -no_memory: - virReportOOMError(); error: virDomainDefFree(def); return NULL; |