[PATCH 16/16] qemuxml2argvtest: Fix type for faked chardev backing a TPM

Ján Tomko jtomko at redhat.com
Fri Nov 19 10:44:26 UTC 2021


On a Thursday in 2021, Peter Krempa wrote:
>The test filled the chardev type to VIR_DOMAIN_CHR_TYPE_FILE and thus
>set the 'data.emulator.source->data.file.path' pointer, but the
>commandline formatter is unconditionally expecting VIR_DOMAIN_CHR_TYPE_UNIX
>and thus reading 'data.emulator.source->data.nix.path'. Since it's an
>union it happened to land in the correct place. Fix the faked data.
>
>Signed-off-by: Peter Krempa <pkrempa at redhat.com>
>---
> tests/qemuxml2argvtest.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20211119/2e096490/attachment-0001.sig>


More information about the libvir-list mailing list