From 1f1d27cc14bb1ed7b74c541e523d8f77b0a98dbb Mon Sep 17 00:00:00 2001 From: Jacopo Mondi Date: Sun, 27 Oct 2019 02:55:49 +0200 Subject: test: object-invoke: Invoke method in blocking mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change the object-invoke test to perform the second method invocation operation in blocking mode. Signed-off-by: Jacopo Mondi Reviewed-by: Laurent Pinchart Reviewed-by: Niklas Söderlund --- test/object-invoke.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test') 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 #include #include @@ -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: -- cgit v1.2.1