diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/object-invoke.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/object-invoke.cpp b/test/object-invoke.cpp index 8e2055ca..fa162c83 100644 --- a/test/object-invoke.cpp +++ b/test/object-invoke.cpp @@ -101,6 +101,26 @@ protected: } /* + * Test that blocking invocation is delivered directly when the + * caller and callee live in the same thread. + */ + object_.reset(); + + object_.invokeMethod(&InvokedObject::method, + ConnectionTypeBlocking, 42); + + switch (object_.status()) { + case InvokedObject::NoCall: + cout << "Method not invoked for main thread (blocking)" << endl; + return TestFail; + case InvokedObject::InvalidThread: + cout << "Method invoked in incorrect thread for main thread (blocking)" << endl; + return TestFail; + default: + break; + } + + /* * Move the object to a thread and verify that auto method * invocation is delivered in the correct thread. */ |