summaryrefslogtreecommitdiff
path: root/test/message.cpp
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-11-27 09:30:22 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-11-27 19:30:48 +0200
commit1f6342f46bda8d2c4bc693dda01f6b5385e11cf6 (patch)
treea86035573c1e6559f4c416ca6805cb5fa1a58071 /test/message.cpp
parentf88e756ceac9a442f12de5d2913047ed40b34542 (diff)
test: message: Fix message handling in MessageReceiver
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 <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'test/message.cpp')
-rw-r--r--test/message.cpp5
1 files changed, 5 insertions, 0 deletions
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