From patchwork Mon Jan 11 12:18:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 59455 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp2044192lbb; Mon, 11 Jan 2016 03:20:07 -0800 (PST) X-Received: by 10.55.78.84 with SMTP id c81mr162983961qkb.85.1452511207148; Mon, 11 Jan 2016 03:20:07 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 199si22052592qhe.38.2016.01.11.03.20.06; Mon, 11 Jan 2016 03:20:07 -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 7779F616C3; Mon, 11 Jan 2016 11:20:06 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=D/8x+z4U; 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 EB66A6167F; Mon, 11 Jan 2016 11:20:01 +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 3741A616B5; Mon, 11 Jan 2016 11:20:00 +0000 (UTC) Received: from mail-lf0-f51.google.com (mail-lf0-f51.google.com [209.85.215.51]) by lists.linaro.org (Postfix) with ESMTPS id DA913616B5 for ; Mon, 11 Jan 2016 11:19:55 +0000 (UTC) Received: by mail-lf0-f51.google.com with SMTP id m198so63818510lfm.0 for ; Mon, 11 Jan 2016 03:19:55 -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; bh=0UE63gdp+8YRTxwaqR9Es56MPcpFiaITl0jGZl6but8=; b=D/8x+z4UUYGexT0Ulw4AZbMoFr2qmMqhQApThdImB9rhGeibTFvd4c/yqV+zhtUHNT JLaelOFB9rAa/ue2dIhw6KlKtiwGfGst1V4u5mJO0c9h7Zs2qhpyzF1PdZ26MUjVvslV OY3xMKRJ8FAW9O6QRBCcbeQhSGo0bPrCk0Tcs= 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; bh=0UE63gdp+8YRTxwaqR9Es56MPcpFiaITl0jGZl6but8=; b=OPSpl6AVnfuR3ShF0VPOEwZvP37FSD1+IgIS/mU+9zzvfw9jySSYx4y6/OKf/gjgtu Y18An0Y3YJu4HDNnKF7wpU0UHR/CdTq1w5lP9HA6Pz1/NI1Gdmaz6x68AUwUHz6uahgb 0lEcqTj8kCSx5DNEw0JSnOnA1OqwCFN1ASaT7lxYE2uV9/dRWYN7KIHv8Yy1gNik4xIN 0RlTJ1q0Vame1g4/ZMYhH0JRum4vKyYz2WbC6ZTpLM0r+G/1YIQrlbpVc9uoa+piEu6z lMneJlQaFfuah7Oo7dZU/Y8rrLKsAcTNtzhumEmkn+dWomZSby/mc5mAA597y7wRRHJj Nd/g== X-Gm-Message-State: ALoCoQlw4+ig62RXW32cZSyROTeOOlkmC0rxlud2NZGIjjpti2GSLqMbjlpQtAx8WQFePyxJcVTCWW7brGD78GAwdM5LGPUkEA== X-Received: by 10.25.78.66 with SMTP id c63mr24388677lfb.18.1452511194755; Mon, 11 Jan 2016 03:19:54 -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 rp10sm4072577lbb.13.2016.01.11.03.19.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 Jan 2016 03:19:54 -0800 (PST) From: Christophe Milard To: mike.holmes@linaro.org, stuart.haslam@linaro.org Date: Mon, 11 Jan 2016 13:18:34 +0100 Message-Id: <1452514714-7238-1-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 2.1.4 X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCH] 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