From: John Ferlan Date: Mon, 10 Oct 2016 10:30:28 +0000 (-0400) Subject: tests: Prefer virGetLastErrorMessage in testSELinuxLabeling X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=95e66fcedf8677bec5b5ce377727373aa60272a7;p=libvirt.git tests: Prefer virGetLastErrorMessage in testSELinuxLabeling Yet another case of not needing virGetLastError processing --- diff --git a/tests/securityselinuxlabeltest.c b/tests/securityselinuxlabeltest.c index e98d9bb81c..1178acfecc 100644 --- a/tests/securityselinuxlabeltest.c +++ b/tests/securityselinuxlabeltest.c @@ -331,10 +331,8 @@ testSELinuxLabeling(const void *opaque) VIR_FREE(files[i].context); } VIR_FREE(files); - if (ret < 0) { - virErrorPtr err = virGetLastError(); - VIR_TEST_VERBOSE("%s\n", err ? err->message : ""); - } + if (ret < 0) + VIR_TEST_VERBOSE("%s\n", virGetLastErrorMessage()); return ret; }