Skip to content
Commit bf9e0313 authored by Daniel P. Berrangé's avatar Daniel P. Berrangé
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>
parent 89ea03a7
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