From patchwork Wed Jan 13 17:08:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 59672 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp3456597lbb; Wed, 13 Jan 2016 08:11:07 -0800 (PST) X-Received: by 10.55.78.207 with SMTP id c198mr176841867qkb.34.1452701467492; Wed, 13 Jan 2016 08:11:07 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id t37si1958597qgt.88.2016.01.13.08.11.06; Wed, 13 Jan 2016 08:11: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 4780A61780; Wed, 13 Jan 2016 16:11: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=j0dwQWij; 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 58CEC61782; Wed, 13 Jan 2016 16:09:46 +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 9D49261774; Wed, 13 Jan 2016 16:09:39 +0000 (UTC) Received: from mail-lf0-f43.google.com (mail-lf0-f43.google.com [209.85.215.43]) by lists.linaro.org (Postfix) with ESMTPS id 1DA676176C for ; Wed, 13 Jan 2016 16:09:36 +0000 (UTC) Received: by mail-lf0-f43.google.com with SMTP id 17so56212496lfz.1 for ; Wed, 13 Jan 2016 08:09:36 -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=j0dwQWij2Y52W2RcWSTRePfCuVFopcAYZs4nPbsMjYB120bYrMWyW13RSIQcyb8z5Y /KecG/GfqDLwk1S0UKdOPkRE2vZ/jr4w4K/xnrGLk7B69ggD9XmLLVx11RrrRNzvSM0J tKDEF0RVCRvh1igAO2d3Mzwk2ibPoDZaN2ZiA= 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=KA7p9mtEhWWzNAik9+4CNQpOh1+bZes16O5lzXWGkxrHiGbAybU/r/dNAfkmvVG7l6 8P3ZXUEwrtwO35Nu/hioGCUeEYF2VTatNPoaQbbnl6dFVhZIdNDsibIeM5h9TG/a9dU8 05TFjGiepk76VwYQ8DZRHI832tlc5i26VaOchZQTqBXxqW89TApQmdyBsCkKz8fKQi9M YIOSG26sHFfqsiJ1C7ZwObRbhoFpQHjJYDCpgDm7wJKk2FOEGGmGbwB1Dex2DpWW1Ahm 59MJLkynHBvGst+TT43DntdSf39gr4mKko84tdd8vkcIGnaXhYV+AEnBWdxn351rlMFC UKRw== X-Gm-Message-State: ALoCoQmvmzWMVKsWAWNNPDLw3vGFuXz4D1slkJ+l5i0dMSkCsb8tBhqhipQrS7yCgAMoWFX8cgw9K9emXZt0EiFzONNfbVcoRA== X-Received: by 10.25.26.210 with SMTP id a201mr26904763lfa.57.1452701375057; Wed, 13 Jan 2016 08:09:35 -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 uk7sm257674lbb.32.2016.01.13.08.09.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 Jan 2016 08:09:34 -0800 (PST) From: Christophe Milard To: mike.holmes@linaro.org, stuart.haslam@linaro.org Date: Wed, 13 Jan 2016 18:08:12 +0100 Message-Id: <1452704893-17874-2-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1452704893-17874-1-git-send-email-christophe.milard@linaro.org> References: <1452704893-17874-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCHv2 2/3] 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