summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/object-invoke.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/object-invoke.cpp b/test/object-invoke.cpp
index ed16de99..8e2055ca 100644
--- a/test/object-invoke.cpp
+++ b/test/object-invoke.cpp
@@ -53,6 +53,11 @@ public:
{
}
+ int methodWithReturn()
+ {
+ return 42;
+ }
+
private:
Status status_;
int value_;
@@ -152,6 +157,15 @@ protected:
object_.invokeMethod(&InvokedObject::methodWithReference,
ConnectionTypeBlocking, 42);
+ /* Test invoking a method that returns a value. */
+ int ret = object_.invokeMethod(&InvokedObject::methodWithReturn,
+ ConnectionTypeBlocking);
+ if (ret != 42) {
+ cout << "Method invoked return incorrect value (" << ret
+ << ")" << endl;
+ return TestFail;
+ }
+
return TestPass;
}