From patchwork Fri Jan 8 20:30:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 59413 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp758502lbb; Fri, 8 Jan 2016 11:55:05 -0800 (PST) X-Received: by 10.140.105.36 with SMTP id b33mr148022398qgf.94.1452282905441; Fri, 08 Jan 2016 11:55:05 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id a7si19005852qkb.126.2016.01.08.11.55.05; Fri, 08 Jan 2016 11:55:05 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 13ECC6176A; Fri, 8 Jan 2016 19:55:05 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=dARF2aQd; dkim-adsp=none (unprotected policy); dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 77DD861D19; Fri, 8 Jan 2016 19:38:19 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 9E4236179C; Fri, 8 Jan 2016 19:36:22 +0000 (UTC) Received: from mail-lf0-f50.google.com (mail-lf0-f50.google.com [209.85.215.50]) by lists.linaro.org (Postfix) with ESMTPS id C4F3F61C8F for ; Fri, 8 Jan 2016 19:32:08 +0000 (UTC) Received: by mail-lf0-f50.google.com with SMTP id d17so15380927lfb.1 for ; Fri, 08 Jan 2016 11:32:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=0UE63gdp+8YRTxwaqR9Es56MPcpFiaITl0jGZl6but8=; b=dARF2aQd5bIL+eAqugFpgJ306+e4jYTGpClK/IpJ70pmqEjRK2xGXWxyGeMCghBfA3 tA+dbUr9zPGndtkFKrPdpPmQL9xQvbSvIEi92DUld1RHkgrl3oBUDfQ2oFcjAMfZuCR4 c16up67ehVj3vhDI6s+1884bZ9BpCpgccLYZA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=0UE63gdp+8YRTxwaqR9Es56MPcpFiaITl0jGZl6but8=; b=Sfh8iqFxHSaXsxns1pu37eSIdkuyZ02eYebhJMZiXnpBf50GOfgbRW24QEC6YQ4w01 PYDttkOQlCIhmjFFq6zxcQhFIUSiIpAWthQwiLW/TqUL3q7v5GYSzjriFuRvITT3WmWI vQQLzZcnB+hHgKvjD+k8a8iiHNA/26raRW3YLMJXHCFbT8hSHhiW2vZaBGCTvaQ2QDfb lcxyClyW21pBZa+c6YKQjxLMxj/47gcAyKGgCWFj/gIGUJvHPwblKMizxkrdh7IypSI4 BtVs+WVPSq9ghWUvfGxy8ZCv4PRJu8+/FEGvw7uhEEWob/TqXTZ6VxyWaibK62qz05Zo RDCw== X-Gm-Message-State: ALoCoQn7anE5ws1D0wrbE97OFHqQHhu9H00L2KrPCKxgtQQsRV8oh63wMSix1BJubhttFaxTDEPkLsDdKxOR8m4lP4kVpIOUYg== X-Received: by 10.25.89.208 with SMTP id n199mr23159567lfb.160.1452281527764; Fri, 08 Jan 2016 11:32:07 -0800 (PST) Received: from erachmi-ericsson.ki.sw.ericsson.se (c-83-233-90-46.cust.bredband2.com. [83.233.90.46]) by smtp.gmail.com with ESMTPSA id l204sm2085534lfg.49.2016.01.08.11.32.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 08 Jan 2016 11:32:07 -0800 (PST) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org, bill.fischofer@linaro.org, petri.savolainen@linaro.org, edavis@broadcom.com Date: Fri, 8 Jan 2016 21:30:10 +0100 Message-Id: <1452285014-60320-28-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1452285014-60320-1-git-send-email-christophe.milard@linaro.org> References: <1452285014-60320-1-git-send-email-christophe.milard@linaro.org> Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [API-NEXT RFC 27/31] validation: possibility to inactive preconded test X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" When marking a test which has a precondition as temporarly inactive, it feels better to be able to keep the precondition function: ODP_TEST_INFO_CONDITIONAL(send_failure, check_send_failure) will be marked as inactive by: ODP_TEST_INFO_INACTIVE(send_failure, check_send_failure) rather than: ODP_TEST_INFO_INACTIVE(send_failure) Remarking the test as active later on is then only a matter of changing back the macro name. Signed-off-by: Christophe Milard --- test/validation/common/odp_cunit_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/validation/common/odp_cunit_common.h b/test/validation/common/odp_cunit_common.h index 8dbbb9f..37e8e8c 100644 --- a/test/validation/common/odp_cunit_common.h +++ b/test/validation/common/odp_cunit_common.h @@ -44,7 +44,7 @@ static inline void odp_cunit_test_missing(void) { } /* A test case that is unconditionally inactive. Its name will be registered * with CUnit but it won't be executed and will be reported as inactive in * the result summary. */ -#define ODP_TEST_INFO_INACTIVE(test_func) \ +#define ODP_TEST_INFO_INACTIVE(test_func, args...) \ {#test_func, odp_cunit_test_missing, odp_cunit_test_inactive} /* A test case that may be marked as inactive at runtime based on the