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>
This commit is contained in:
Jacopo Mondi 2019-10-27 02:55:49 +02:00 committed by Laurent Pinchart
parent fb1a5c0416
commit 1f1d27cc14

View file

@ -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: