From 95e66fcedf8677bec5b5ce377727373aa60272a7 Mon Sep 17 00:00:00 2001 From: John Ferlan Date: Mon, 10 Oct 2016 06:30:28 -0400 Subject: [PATCH] tests: Prefer virGetLastErrorMessage in testSELinuxLabeling Yet another case of not needing virGetLastError processing --- tests/securityselinuxlabeltest.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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; } -- 2.47.2