提交 80de0a8c 编写于 作者: C Cole Robinson

test: Fake security driver support in capabilities

Having some value in capabilities helps testing this stuff in
virt-manager.
上级 38536d6f
......@@ -205,6 +205,14 @@ testBuildCapabilities(virConnectPtr conn) {
caps->privateDataAllocFunc = testDomainObjPrivateAlloc;
caps->privateDataFreeFunc = testDomainObjPrivateFree;
caps->host.secModel.model = strdup("testSecurity");
if (!caps->host.secModel.model)
goto no_memory;
caps->host.secModel.doi = strdup("");
if (!caps->host.secModel.doi)
goto no_memory;
return caps;
no_memory:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册