diff options
author | Povilas Kanapickas <povilas@radix.lt> | 2020-12-20 19:04:53 +0200 |
---|---|---|
committer | Povilas Kanapickas <povilas@radix.lt> | 2020-12-20 19:04:53 +0200 |
commit | dad1d97d881c8ca7d962a0f4f83905e1469f9947 (patch) | |
tree | cb482f9d37d14d7b455a5889483aea5c0da16897 | |
parent | a837b123cd6f40a22a1e4b04de290163e9869100 (diff) |
common: Don't ignore non-matching events in tests
WaitForEventOfType() will skip non-matching events. This may cause tests
to be unexpectedly less rigorous than wanted. Let's just force all tests
to specify all incoming events so that no changes of behavior are
missed.
-rw-r--r-- | tests/common/xit-event.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/common/xit-event.h b/tests/common/xit-event.h index 571723d..e990d30 100644 --- a/tests/common/xit-event.h +++ b/tests/common/xit-event.h @@ -89,7 +89,7 @@ public: template<typename EventType> XITEvent<EventType>::XITEvent(::Display *dpy, int type, int opcode, int evtype) { - if (!xorg::testing::XServer::WaitForEventOfType(dpy, type, opcode, evtype)) { + if (!xorg::testing::XServer::WaitForEvent(dpy)) { ADD_FAILURE() << "Event not received before timeout"; ev = NULL; return; |