Skip to content
Snippets Groups Projects
Commit d6664267 authored by Rayhan Faizel's avatar Rayhan Faizel Committed by Michal Privoznik
Browse files

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: default avatarRayhan Faizel <rayhan.faizel@gmail.com>
Reviewed-by: default avatarMichal Privoznik <mprivozn@redhat.com>
parent f67b12ba
No related branches found
No related tags found
No related merge requests found
Pipeline #1360254661 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment