From patchwork Tue Jul 14 11:52:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 51103 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5CDE2202B9 for ; Tue, 14 Jul 2015 11:53:40 +0000 (UTC) Received: by lbvb1 with SMTP id b1sf2161815lbv.3 for ; Tue, 14 Jul 2015 04:53:39 -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=dNo9jxU8/4TNlaKDYmj0h/EYZrFcDDcL5tdZYNv7Vdv8nZal1KsMCiquEofjVLDi7L 6WcJVjX7uRhbePpopmNkSJD3bt8I/djojq8ujBbJU/F70MSQ6vO/EJN9i0VpUlBhTBiI iFBeYxQMo/zaP4R+pJt08cQsi0nmkTWfps6UlxMcaNZnneufmMvSUQlBh+RpKEpjv71Z 9qVjUzqmUFn1qXcW4Pix3wrTvWWSMgqd5dmuiMu/58o5u7/w8l5g/49cT6I1ka1iKVTs 48nQ+eb5WDeIBP/7HEP824jCF6QrpLqV/HVYB+BmU3hla2bltq78T+MX/SdXYEYHVxjE sMTA== X-Gm-Message-State: ALoCoQlXpU33LYFEG0SujBPh5wDS4tTCmjaDqeL06oWFtnitpOyszMeJ5jbYx1Lp6JWnQZNyqvCa X-Received: by 10.180.36.242 with SMTP id t18mr9879624wij.3.1436874819247; Tue, 14 Jul 2015 04:53:39 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.206.36 with SMTP id ll4ls35432lac.36.gmail; Tue, 14 Jul 2015 04:53:39 -0700 (PDT) X-Received: by 10.152.5.65 with SMTP id q1mr37239483laq.110.1436874819084; Tue, 14 Jul 2015 04:53:39 -0700 (PDT) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com. [209.85.217.178]) by mx.google.com with ESMTPS id t2si693823lbj.163.2015.07.14.04.53.39 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Jul 2015 04:53:39 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) client-ip=209.85.217.178; Received: by lblf12 with SMTP id f12so4603585lbl.2 for ; Tue, 14 Jul 2015 04:53:39 -0700 (PDT) X-Received: by 10.112.126.101 with SMTP id mx5mr37933945lbb.35.1436874818993; Tue, 14 Jul 2015 04:53:38 -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 hn6csp2332356lbb; Tue, 14 Jul 2015 04:53:38 -0700 (PDT) X-Received: by 10.55.27.130 with SMTP id m2mr17488058qkh.46.1436874815323; Tue, 14 Jul 2015 04:53:35 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 17si745127qht.35.2015.07.14.04.53.33; Tue, 14 Jul 2015 04:53:35 -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 127F461DA5; Tue, 14 Jul 2015 11:53:33 +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_H2, 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 9E4AF61E36; Tue, 14 Jul 2015 11:52:24 +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 A9FB361B6E; Tue, 14 Jul 2015 11:52:17 +0000 (UTC) Received: from mail-ob0-f172.google.com (mail-ob0-f172.google.com [209.85.214.172]) by lists.linaro.org (Postfix) with ESMTPS id 9DA1661B6E for ; Tue, 14 Jul 2015 11:52:16 +0000 (UTC) Received: by obre1 with SMTP id e1so4363052obr.1 for ; Tue, 14 Jul 2015 04:52:16 -0700 (PDT) X-Received: by 10.182.165.71 with SMTP id yw7mr34647190obb.16.1436874736275; Tue, 14 Jul 2015 04:52:16 -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 c203sm325622oig.12.2015.07.14.04.52.15 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Jul 2015 04:52:15 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Tue, 14 Jul 2015 06:52:08 -0500 Message-Id: <1436874728-5160-3-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1436874728-5160-1-git-send-email-bill.fischofer@linaro.org> References: <1436874728-5160-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv2 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.217.178 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);