summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2019-10-27 02:55:49 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-10-29 18:46:33 +0200
commit1f1d27cc14bb1ed7b74c541e523d8f77b0a98dbb (patch)
treec6bdb8ec114aa87afbb068d46f5e0a1403088257
parentfb1a5c0416ebd516a5ef01ba76deed1b602828ba (diff)
test: object-invoke: Invoke method in blocking mode
Change the object-invoke test to perform the second method invocation operation in blocking mode. Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
-rw-r--r--test/object-invoke.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/object-invoke.cpp b/test/object-invoke.cpp
index f6ae2604..6582fa75 100644
--- a/test/object-invoke.cpp
+++ b/test/object-invoke.cpp
@@ -5,7 +5,6 @@
* object-invoke.cpp - Cross-thread Object method invocation test
*/
-#include <chrono>
#include <iostream>
#include <thread>
@@ -103,8 +102,7 @@ protected:
thread_.start();
object.invokeMethod(&InvokedObject::method,
- ConnectionTypeAuto, 42);
- this_thread::sleep_for(chrono::milliseconds(100));
+ ConnectionTypeBlocking, 42);
switch (object.status()) {
case InvokedObject::NoCall: