From patchwork Wed Sep 24 20:12:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 37869 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f200.google.com (mail-we0-f200.google.com [74.125.82.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 279C0204FF for ; Wed, 24 Sep 2014 20:13:15 +0000 (UTC) Received: by mail-we0-f200.google.com with SMTP id w62sf3205142wes.11 for ; Wed, 24 Sep 2014 13:13:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=OO1FgtNVCGmIIaz9smccs54f/xIqCmBsEslBDWYzMtc=; b=WVHO33vY4K6lL52cLJqbZI/RCBIbnZYOtmyg+0QSOFPMxQcr1fIVH4DqLjE5ZQwG2E 2+1r5LXshFQe4OkVxswhAYZz07tRm7dPplh0rkyKt7CPbBxNOdDeo6B3DT+GXMCG9q+v Qw0gzHegVdnGPpR5JSIqmv9iJL0CkN/vsz1IEx47PazwpdANPKeZJlGM51XcGq3NaGCg 1QzcEu2IRHK32IEBOlbU625x8mUfARiAUH/urESgw12fH/RpkqVpKE0gqYbtXUch34tk 8a2A4UxODTIXp+wOFii02tQhHTg9sbmtLW5BPbD+eM3xr1tkp3V9Pc5BYB2SjiHgi3DD z40w== X-Gm-Message-State: ALoCoQkgkDFpoM7DHil6iDvFd/q42lMUFoRHOojFjwS66B4Wxmokae0G8QUEZCNk6ORKOZgVjphl X-Received: by 10.194.100.3 with SMTP id eu3mr14119wjb.6.1411589594368; Wed, 24 Sep 2014 13:13:14 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.43.103 with SMTP id v7ls221069lal.32.gmail; Wed, 24 Sep 2014 13:13:14 -0700 (PDT) X-Received: by 10.152.42.173 with SMTP id p13mr8470869lal.23.1411589594220; Wed, 24 Sep 2014 13:13:14 -0700 (PDT) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com [209.85.215.48]) by mx.google.com with ESMTPS id e7si244063lag.100.2014.09.24.13.13.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 24 Sep 2014 13:13:14 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by mail-la0-f48.google.com with SMTP id ty20so11193936lab.21 for ; Wed, 24 Sep 2014 13:13:14 -0700 (PDT) X-Received: by 10.112.4.33 with SMTP id h1mr7977123lbh.67.1411589594152; Wed, 24 Sep 2014 13:13:14 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.130.169 with SMTP id of9csp647222lbb; Wed, 24 Sep 2014 13:13:13 -0700 (PDT) X-Received: by 10.229.86.129 with SMTP id s1mr8380530qcl.1.1411589592987; Wed, 24 Sep 2014 13:13:12 -0700 (PDT) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id y35si338881qgd.28.2014.09.24.13.13.12 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 24 Sep 2014 13:13:12 -0700 (PDT) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XWsw3-0005sH-Es; Wed, 24 Sep 2014 20:13:11 +0000 Received: from mail-lb0-f181.google.com ([209.85.217.181]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XWsvo-0005rK-Or for lng-odp@lists.linaro.org; Wed, 24 Sep 2014 20:12:56 +0000 Received: by mail-lb0-f181.google.com with SMTP id b6so6076906lbj.40 for ; Wed, 24 Sep 2014 13:12:51 -0700 (PDT) X-Received: by 10.112.167.106 with SMTP id zn10mr5456153lbb.96.1411589570787; Wed, 24 Sep 2014 13:12:50 -0700 (PDT) Received: from localhost (c-853670d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.54.133]) by mx.google.com with ESMTPSA id a9sm105918laa.3.2014.09.24.13.12.49 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 24 Sep 2014 13:12:50 -0700 (PDT) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Wed, 24 Sep 2014 22:12:41 +0200 Message-Id: <1411589561-20050-4-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1411589561-20050-1-git-send-email-anders.roxell@linaro.org> References: <1411589561-20050-1-git-send-email-anders.roxell@linaro.org> X-Topics: patch Subject: [lng-odp] [RFC PATCH 2/2] cunit: if 0 invalid tests for now X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: 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-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: anders.roxell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 We need to figure out a way to redefine ODP_ABORT otherwice cunit will fail without returning the metricks for tests with invalid params. Signed-off-by: Anders Roxell --- test/unit/odp_buffer_test.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/unit/odp_buffer_test.c b/test/unit/odp_buffer_test.c index 38f5538..7fbfb08 100644 --- a/test/unit/odp_buffer_test.c +++ b/test/unit/odp_buffer_test.c @@ -59,6 +59,11 @@ static void test_odp_buffer_size(void) odp_buffer_free(mybuffer); odp_buffer_pool_delete(msg_pool); CU_ASSERT_TRUE(size == DEFAULT_MSG_SIZE); +} + +#if 0 +static void test_odp_buffer_size_invalid() +{ /* bad buffer size */ msg_pool = odp_buffer_pool_create("msg_pool2_1", pool_base, DEFAULT_MSG_POOL_SIZE, @@ -72,6 +77,7 @@ static void test_odp_buffer_size(void) odp_buffer_pool_delete(msg_pool); CU_ASSERT_TRUE(size == ODP_BUFFER_INVALID); } +#endif static void test_odp_buffer_type(int type_in) { @@ -107,6 +113,7 @@ static void test_odp_buffer_type_valid(void) test_odp_buffer_type(ODP_BUFFER_TYPE_TIMEOUT); } +#if 0 static void test_odp_buffer_type_invalid(void) { int type; @@ -136,6 +143,7 @@ static void test_odp_buffer_type_invalid(void) odp_buffer_pool_delete(msg_pool); CU_ASSERT_TRUE(type == type_in); } +#endif static void test_odp_is_scatter(void) { @@ -246,7 +254,6 @@ int main(void) if ((NULL == CU_ADD_TEST(pSuite, test_odp_buffer_size)) || (NULL == CU_ADD_TEST(pSuite, test_odp_buffer_addr)) || (NULL == CU_ADD_TEST(pSuite, test_odp_buffer_type_valid)) || - (NULL == CU_ADD_TEST(pSuite, test_odp_buffer_type_invalid)) || (NULL == CU_ADD_TEST(pSuite, test_odp_is_valid)) || (NULL == CU_ADD_TEST(pSuite, test_odp_is_scatter)) || (NULL == CU_ADD_TEST(pSuite, test_odp_buffer_print))) {