From patchwork Fri Dec 21 08:13:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 68 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id CAB2B60B0C for ; Fri, 21 Dec 2018 09:13:20 +0100 (CET) Received: from localhost.localdomain (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 58592597; Fri, 21 Dec 2018 09:13:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1545380000; bh=+8sUYWs5XjZmV3mytIVj4iybD/oJqYPThrrKXKgajro=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dxRziXI6ODvcCyi/NQRLO+e+S5qH7sFfg+jOlA0pxoXcmoGgX0heqqKVTZ26I8NO9 SCLziYDHT9UgVwvXc5zdZ32tqSbxfMvq7PyTI6E+y8IDIr+IhqlsWUuzUBQsINq5qQ SnoPQT1MRV6D0TFDKMHMZUyTHv6zI0OwG1j3vU44= From: Kieran Bingham To: LibCamera Devel Date: Fri, 21 Dec 2018 08:13:08 +0000 Message-Id: <20181221081311.3291-3-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181221081311.3291-1-kieran.bingham@ideasonboard.com> References: <20181221081311.3291-1-kieran.bingham@ideasonboard.com> Subject: [libcamera-devel] [PATCH 2/5] test: libtest: Add test return codes X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Dec 2018 08:13:21 -0000 The meson test infrastructure uses return codes to determine test results. Define these values for use in tests. Signed-off-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- test/libtest/test.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/libtest/test.h b/test/libtest/test.h index c85eeb5d9744..18b430f428c7 100644 --- a/test/libtest/test.h +++ b/test/libtest/test.h @@ -9,6 +9,10 @@ #include +#define TEST_PASS 0 +#define TEST_FAIL -1 +#define TEST_SKIP 77 + class Test { public: