提交 95e66fce 编写于 作者: J John Ferlan

tests: Prefer virGetLastErrorMessage in testSELinuxLabeling

Yet another case of not needing virGetLastError processing
上级 c951cdbf
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册