mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
test: Fake security driver support in capabilities
Having some value in capabilities helps testing this stuff in virt-manager.
This commit is contained in:
parent
38536d6f7f
commit
80de0a8c40
@ -205,6 +205,14 @@ testBuildCapabilities(virConnectPtr conn) {
|
|||||||
caps->privateDataAllocFunc = testDomainObjPrivateAlloc;
|
caps->privateDataAllocFunc = testDomainObjPrivateAlloc;
|
||||||
caps->privateDataFreeFunc = testDomainObjPrivateFree;
|
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;
|
return caps;
|
||||||
|
|
||||||
no_memory:
|
no_memory:
|
||||||
|
Loading…
Reference in New Issue
Block a user