mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00: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->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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user