Skip to content
Commit 54c13049 authored by Daniel P. Berrangé's avatar Daniel P. Berrangé Committed by Michael Roth
Browse files

tests: make filemonitor test more robust to event ordering



The ordering of events that are emitted during the rmdir
test have changed with kernel >= 5.3. Semantically both
new & old orderings are correct, so we must be able to
cope with either.

To cope with this, when we see an unexpected event, we
push it back onto the queue and look and the subsequent
event to see if that matches instead.

Tested-by: default avatarPeter Xu <peterx@redhat.com>
Tested-by: default avatarWei Yang <richardw.yang@linux.intel.com>
Tested-by: default avatarCornelia Huck <cohuck@redhat.com>
Reviewed-by: default avatarThomas Huth <thuth@redhat.com>
Signed-off-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
(cherry picked from commit bf9e0313)
Signed-off-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
parent 3d018ff3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment