From patchwork Mon Jul 13 21:11:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 51084 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4B4FE20319 for ; Mon, 13 Jul 2015 21:12:33 +0000 (UTC) Received: by wgwk7 with SMTP id k7sf51890272wgw.0 for ; Mon, 13 Jul 2015 14:12:32 -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: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:content-type:content-transfer-encoding:errors-to :sender:x-original-sender:x-original-authentication-results :mailing-list; bh=CIq+rd8zTPFqmb/YoqkUFUDoHDYc7YTtPRtfLTVUM/M=; b=RIwCfJpveiTlyPX0g5pJgWkFxF3cpdgLHR/Zv7d8JzWFE2V4AhSwlSSDmeZ/sDhN1Q ROqVYRoIG8dbPVUcxaU958T8Dn4nGUeBxcDOB+/CtUfAvhr9lx2TosH0NCiGA5TOZ0Cz jS735vr7VKKOaAqNWJGv+axX0d5rICOcmJ7o4kaoxUShR1ogsBaFrSPihrfYUGQHvBNv g3v/2tg5F6RIHZ57BrrWkFbogQ7EvK/qVGPf+1AMboDbuAOFENJCUAK1JVhC02ni5IdD MaAl+Zwe+P1gIHjgCg4t2tQY1AulBMQXKPRdhXWQ0MLY52PanOhEslMSLCraaMYEByTP texQ== X-Gm-Message-State: ALoCoQl8YgH1xEsWJ/owumbPFefQxqkBRlWMcIVPMNxR6eLzaJokIqWw4VZBcqRjwN8/UqwKXNfI X-Received: by 10.194.175.36 with SMTP id bx4mr19541105wjc.1.1436821952314; Mon, 13 Jul 2015 14:12:32 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.87.198 with SMTP id ba6ls1585338lab.40.gmail; Mon, 13 Jul 2015 14:12:32 -0700 (PDT) X-Received: by 10.152.246.37 with SMTP id xt5mr34008133lac.83.1436821952152; Mon, 13 Jul 2015 14:12:32 -0700 (PDT) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com. [209.85.215.45]) by mx.google.com with ESMTPS id ld8si4449939lac.58.2015.07.13.14.12.31 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Jul 2015 14:12:31 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by lahh5 with SMTP id h5so24346673lah.2 for ; Mon, 13 Jul 2015 14:12:31 -0700 (PDT) X-Received: by 10.112.128.169 with SMTP id np9mr34440538lbb.73.1436821951872; Mon, 13 Jul 2015 14:12:31 -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.108.230 with SMTP id hn6csp1963050lbb; Mon, 13 Jul 2015 14:12:31 -0700 (PDT) X-Received: by 10.55.48.18 with SMTP id w18mr56728289qkw.34.1436821950566; Mon, 13 Jul 2015 14:12:30 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 73si21696251qkw.127.2015.07.13.14.12.29; Mon, 13 Jul 2015 14:12:30 -0700 (PDT) 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; Received: by lists.linaro.org (Postfix, from userid 109) id B3C3261E2B; Mon, 13 Jul 2015 21:12:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 9A74B61E33; Mon, 13 Jul 2015 21:11: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 0E08361E2C; Mon, 13 Jul 2015 21:11:39 +0000 (UTC) Received: from mail-oi0-f54.google.com (mail-oi0-f54.google.com [209.85.218.54]) by lists.linaro.org (Postfix) with ESMTPS id BD6E261D10 for ; Mon, 13 Jul 2015 21:11:37 +0000 (UTC) Received: by oiab3 with SMTP id b3so144572562oia.1 for ; Mon, 13 Jul 2015 14:11:37 -0700 (PDT) X-Received: by 10.182.65.164 with SMTP id y4mr2412915obs.65.1436821897372; Mon, 13 Jul 2015 14:11:37 -0700 (PDT) Received: from localhost.localdomain (cpe-24-28-70-239.austin.res.rr.com. [24.28.70.239]) by smtp.gmail.com with ESMTPSA id d70sm10658342oih.16.2015.07.13.14.11.36 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 13 Jul 2015 14:11:36 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Mon, 13 Jul 2015 16:11:30 -0500 Message-Id: <1436821890-6964-3-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1436821890-6964-1-git-send-email-bill.fischofer@linaro.org> References: <1436821890-6964-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCH 3/3] validation: queue: allow for anonymous queues X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 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" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: bill.fischofer@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.45 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 Signed-off-by: Bill Fischofer --- test/validation/queue/queue.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/validation/queue/queue.c b/test/validation/queue/queue.c index ef7c8f2..480b3aa 100644 --- a/test/validation/queue/queue.c +++ b/test/validation/queue/queue.c @@ -40,7 +40,7 @@ static int queue_suite_term(void) static void queue_test_sunnydays(void) { - odp_queue_t queue_creat_id, queue_id; + odp_queue_t queue_creat_id, queue_anon_id, queue_id; odp_event_t enev[MAX_BUFFER_QUEUE]; odp_event_t deev[MAX_BUFFER_QUEUE]; odp_buffer_t buf; @@ -52,6 +52,10 @@ static void queue_test_sunnydays(void) int max_iteration = CONFIG_MAX_ITERATION; void *prtn = NULL; + queue_anon_id = odp_queue_create(NULL, ODP_QUEUE_TYPE_POLL, NULL); + CU_ASSERT(ODP_QUEUE_INVALID != queue_anon_id); + CU_ASSERT(odp_queue_destroy(queue_anon_id) == 0); + queue_creat_id = odp_queue_create("test_queue", ODP_QUEUE_TYPE_POLL, NULL); CU_ASSERT(ODP_QUEUE_INVALID != queue_creat_id);