From patchwork Thu Feb 18 12:48:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balasubramanian Manoharan X-Patchwork-Id: 62171 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp566331lbl; Thu, 18 Feb 2016 04:48:50 -0800 (PST) X-Received: by 10.140.94.198 with SMTP id g64mr8614323qge.57.1455799730191; Thu, 18 Feb 2016 04:48:50 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 66si48350466qgg.23.2016.02.18.04.48.49; Thu, 18 Feb 2016 04:48:50 -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 AE35262F03; Thu, 18 Feb 2016 12:48:49 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=iM0PuIZT; 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_H2,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 D312462EF2; Thu, 18 Feb 2016 12:48:45 +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 3DD9162EF4; Thu, 18 Feb 2016 12:48:44 +0000 (UTC) Received: from mail-pa0-f47.google.com (mail-pa0-f47.google.com [209.85.220.47]) by lists.linaro.org (Postfix) with ESMTPS id 20EC062EF0 for ; Thu, 18 Feb 2016 12:48:43 +0000 (UTC) Received: by mail-pa0-f47.google.com with SMTP id yy13so30428288pab.3 for ; Thu, 18 Feb 2016 04:48:43 -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=VjGZFTfCw783k+Jr9TUhOujcxgptXzIkLMpkeTxUZ+k=; b=iM0PuIZT9kYAEZ1hdSXL8DPuqL679dD8cgX8Vn6GFzPiWGyHJJfuQPp47PSYgsjk1i 5QCD/6EkkMNC2eJdJed7zFxEk/su6mqeT8T/vsiRlYoUWOA6l4xsIhAdoQL8NjQpRv19 fTmti8N07tx6WDHd5gAZ6TXWSGjgyyGAmFgD0= 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=VjGZFTfCw783k+Jr9TUhOujcxgptXzIkLMpkeTxUZ+k=; b=Jnzrt0ohod0sc7bMNFeDP72i45TQVGApK8z/rCCJPgZmerUZLpmukQqm/BiLFcdFZZ K067WOu/M5ItYFQ80LaOk6AXglQ3a0T0krOXGZDeEgwmpwQgC0dYF/vyLqR5tD6FncKQ IT0jnHxgnRWybvgJGfxWFXGpUrSHJw3gp6wYwMXf68aCoUUkw4mAhrtMJRYXmRAvKjHp dNN7G84zc/P2rvBCaWRYDWvF7TKYxNa0vhv362Znr1vAJc04QT7Z++f9KZ5+CAWfSJq5 QOfhMqGuQUikPhWHPzMeH+t4jp5CMo8YpL5oI0f8+UpeC3LBwcnHd9t/QyyNNKyX/eeT OoaA== X-Gm-Message-State: AG10YOTY/1jQpxzgd1FlQXv2hLuMQPe0PhIDHi9McaNCLLfq/37jxVnGmCmoZJvcGED8rJpJh2w= X-Received: by 10.66.139.137 with SMTP id qy9mr9772347pab.57.1455799722421; Thu, 18 Feb 2016 04:48:42 -0800 (PST) Received: from bala-Vostro-2520.domain.name ([61.2.79.49]) by smtp.gmail.com with ESMTPSA id 74sm10208145pfs.33.2016.02.18.04.48.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 18 Feb 2016 04:48:41 -0800 (PST) From: Balasubramanian Manoharan To: lng-odp@lists.linaro.org Date: Thu, 18 Feb 2016 18:18:33 +0530 Message-Id: <1455799713-4534-1-git-send-email-bala.manoharan@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: Classification patch Subject: [lng-odp] [PATCH v1] validation: classification: add test case for odp_cos_drop() function 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" Fixes: https://bugs.linaro.org/show_bug.cgi?id=2016 Signed-off-by: Balasubramanian Manoharan Reviewed-by: Mike Holmes --- test/validation/classification/odp_classification_basic.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/validation/classification/odp_classification_basic.c b/test/validation/classification/odp_classification_basic.c index 81077b6..8fbad5f 100644 --- a/test/validation/classification/odp_classification_basic.c +++ b/test/validation/classification/odp_classification_basic.c @@ -215,8 +215,11 @@ void classification_test_cos_set_drop(void) retval = odp_cos_drop_set(cos_drop, ODP_COS_DROP_POOL); CU_ASSERT(retval == 0); + CU_ASSERT(ODP_COS_DROP_POOL == odp_cos_drop(cos_drop)); + retval = odp_cos_drop_set(cos_drop, ODP_COS_DROP_NEVER); CU_ASSERT(retval == 0); + CU_ASSERT(ODP_COS_DROP_NEVER == odp_cos_drop(cos_drop)); odp_cos_destroy(cos_drop); odp_pool_destroy(pool); odp_queue_destroy(queue);