From 1f6342f46bda8d2c4bc693dda01f6b5385e11cf6 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Wed, 27 Nov 2019 09:30:22 +0200 Subject: test: message: Fix message handling in MessageReceiver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Forward messages that we don't handle to the base Object class, to avoid both blocking the ThreadMove message and mistaking it as the test message. Signed-off-by: Laurent Pinchart Reviewed-by: Jacopo Mondi Reviewed-by: Niklas Söderlund --- test/message.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/message.cpp') diff --git a/test/message.cpp b/test/message.cpp index 3775c30a..cf21d5ca 100644 --- a/test/message.cpp +++ b/test/message.cpp @@ -37,6 +37,11 @@ public: protected: void message(Message *msg) { + if (msg->type() != Message::None) { + Object::message(msg); + return; + } + if (thread() != Thread::current()) status_ = InvalidThread; else -- cgit v1.2.1