diff options
Diffstat (limited to 'test/message.cpp')
-rw-r--r-- | test/message.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/message.cpp b/test/message.cpp index de98da3e..3775c30a 100644 --- a/test/message.cpp +++ b/test/message.cpp @@ -52,6 +52,17 @@ class MessageTest : public Test protected: int run() { + Message::Type msgType[2] = { + Message::registerMessageType(), + Message::registerMessageType(), + }; + + if (msgType[0] != Message::UserMessage || + msgType[1] != Message::UserMessage + 1) { + cout << "Failed to register message types" << endl; + return TestFail; + } + MessageReceiver receiver; receiver.moveToThread(&thread_); |