]> xenbits.xensource.com Git - libvirt.git/commit
virpcivpdtest: testPCIVPDResourceBasic: Remove tests for uninitialized 'ro'/'rw'...
authorPeter Krempa <pkrempa@redhat.com>
Wed, 24 Jan 2024 16:13:51 +0000 (17:13 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 31 Jan 2024 16:24:07 +0000 (17:24 +0100)
commite8f5edf556145cbe6bae53255ded3051d65f24f1
tree975c63ff45fb9aeb85b3f0eb0204f2cec5fe32c0
parentfb69acf5c255f6baedefe2a2535325af8088ced5
virpcivpdtest: testPCIVPDResourceBasic: Remove tests for uninitialized 'ro'/'rw' section

This is a synthetic case which tests the behaviour if the 'ro' or 'rw'
struct members are uninitialized, basically excercising only a pointless
programming-error NULL check in 'virPCIVPDResourceUpdateKeyword' as real
usage does always pass a proper pointer.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/virpcivpdtest.c