summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPovilas Kanapickas <povilas@radix.lt>2020-12-20 19:04:53 +0200
committerPovilas Kanapickas <povilas@radix.lt>2020-12-20 19:04:53 +0200
commitdad1d97d881c8ca7d962a0f4f83905e1469f9947 (patch)
treecb482f9d37d14d7b455a5889483aea5c0da16897
parenta837b123cd6f40a22a1e4b04de290163e9869100 (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.h2
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;