tests: Prefer virGetLastErrorMessage in testSELinuxLabeling

Yet another case of not needing virGetLastError processing
This commit is contained in:
John Ferlan 2016-10-10 06:30:28 -04:00
parent c951cdbff9
commit 95e66fcedf

View File

@ -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 : "<unknown>");
}
if (ret < 0)
VIR_TEST_VERBOSE("%s\n", virGetLastErrorMessage());
return ret;
}