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>
This commit is contained in:
Laurent Pinchart 2019-11-27 09:30:22 +02:00
parent f88e756cea
commit 1f6342f46b

View file

@ -37,6 +37,11 @@ public:
protected: protected:
void message(Message *msg) void message(Message *msg)
{ {
if (msg->type() != Message::None) {
Object::message(msg);
return;
}
if (thread() != Thread::current()) if (thread() != Thread::current())
status_ = InvalidThread; status_ = InvalidThread;
else else