From patchwork Sun Oct 27 20:33:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 2236 X-Patchwork-Delegate: jacopo@jmondi.org Return-Path: Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 6D6F46017C for ; Sun, 27 Oct 2019 21:31:50 +0100 (CET) X-Originating-IP: 93.2.121.143 Received: from uno.localdomain (143.121.2.93.rev.sfr.net [93.2.121.143]) (Authenticated sender: jacopo@jmondi.org) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 0DA00C0005; Sun, 27 Oct 2019 20:31:49 +0000 (UTC) From: Jacopo Mondi To: libcamera-devel@lists.libcamera.org Date: Sun, 27 Oct 2019 21:33:34 +0100 Message-Id: <20191027203335.26888-6-jacopo@jmondi.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191027203335.26888-1-jacopo@jmondi.org> References: <20191027203335.26888-1-jacopo@jmondi.org> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 5/6] test: object-invoke: invoke method in blocking mode X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Oct 2019 20:31:51 -0000 Change the object-invoke test to perform the second method invocation operation in blocking mode. Signed-off-by: Jacopo Mondi Reviewed-by: Laurent Pinchart --- test/object-invoke.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/object-invoke.cpp b/test/object-invoke.cpp index 6e0e24b146f0..4ae8c91ab7f0 100644 --- a/test/object-invoke.cpp +++ b/test/object-invoke.cpp @@ -102,8 +102,7 @@ protected: thread_.start(); object.invokeMethod(&InvokedObject::method, - InvocationTypeAuto, 42); - this_thread::sleep_for(chrono::milliseconds(100)); + InvocationTypeBlocking, 42); switch (object.status()) { case InvokedObject::NoCall: