-
- Downloads
tests: Move domainEventState initialization to qemuTestDriverInit
Under the test environment, driver->domainEventState is uninitialized. If a disk gets dropped, it will attempt to queue an event which will cause a segmentation fault. This crash does not occur during normal use. This patch moves driver->domainEventState initialization from qemuhotplugtest to qemuTestDriverInit in testutilsqemu (Credit goes to Michal Privoznik as he had already provided the diff). An additional test case is added to test dropping of disks with startupPolicy set as optional. Signed-off-by:Rayhan Faizel <rayhan.faizel@gmail.com> Reviewed-by:
Michal Privoznik <mprivozn@redhat.com>
Showing
- tests/qemuhotplugtest.c 0 additions, 3 deletionstests/qemuhotplugtest.c
- tests/qemuxmlconfdata/disk-startuppolicy-optional-drop.x86_64-latest.args 33 additions, 0 deletions...fdata/disk-startuppolicy-optional-drop.x86_64-latest.args
- tests/qemuxmlconfdata/disk-startuppolicy-optional-drop.x86_64-latest.xml 38 additions, 0 deletions...nfdata/disk-startuppolicy-optional-drop.x86_64-latest.xml
- tests/qemuxmlconfdata/disk-startuppolicy-optional-drop.xml 23 additions, 0 deletionstests/qemuxmlconfdata/disk-startuppolicy-optional-drop.xml
- tests/qemuxmlconftest.c 1 addition, 0 deletionstests/qemuxmlconftest.c
- tests/testutilsqemu.c 4 additions, 0 deletionstests/testutilsqemu.c
Loading
Please register or sign in to comment