From patchwork Sun Mar 8 22:52:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 45517 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f198.google.com (mail-we0-f198.google.com [74.125.82.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5D6AE214AE for ; Sun, 8 Mar 2015 22:53:17 +0000 (UTC) Received: by wesu56 with SMTP id u56sf1799984wes.2 for ; Sun, 08 Mar 2015 15:53:16 -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:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=+Gf5r2ZkbdbFIVDROxpERpRwrkKRxbKcMNMCidxhvh0=; b=gO6Rgew3IVoV9z/z/jRJ5Q+VOuCSpNcfToGSG5V/z02RIk7b+/+6WBYcmuOho/91fz L/bz2f2tewbIvBZWYk9uRDRp07M2EsL9QqOAxWJA4hYyxlGewUxAPOqVKS/eWk7z0fZQ pfPTApnXjpkzKT6WU8uSuuuEMCZ/fP/slOH6A4oHrfgEmlFpO3OEyIbxOkGwgFShJER+ 6jHLHjBdPn9y5+YYfcD3rgw0dVk9Cxbk1OHQ5zWpVp+QuUETsLjCDRhQhtfcWtAgVC8z Ft86MxFcMJqq1PwBjbYiT/0/LjovrZ/UFi28LGSA0g2XomZYbzkRD/gSTIsZB5FuGZ5D bgOQ== X-Gm-Message-State: ALoCoQms7jF4ggaxfgEx5oHnKRO/LxwwBtT7HFGUx7fl5cS+8KHEL6eNutHLKPe7zXZQVrSEA4WW X-Received: by 10.152.6.41 with SMTP id x9mr3516215lax.10.1425855196305; Sun, 08 Mar 2015 15:53:16 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.5.2 with SMTP id ci2ls48767lad.38.gmail; Sun, 08 Mar 2015 15:53:16 -0700 (PDT) X-Received: by 10.152.204.6 with SMTP id ku6mr1196211lac.62.1425855196020; Sun, 08 Mar 2015 15:53:16 -0700 (PDT) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com. [209.85.215.42]) by mx.google.com with ESMTPS id qt5si1631751lbb.78.2015.03.08.15.53.15 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 08 Mar 2015 15:53:15 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by labge10 with SMTP id ge10so308004lab.7 for ; Sun, 08 Mar 2015 15:53:15 -0700 (PDT) X-Received: by 10.112.64.193 with SMTP id q1mr23057076lbs.88.1425855195510; Sun, 08 Mar 2015 15:53:15 -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.35.133 with SMTP id h5csp1137209lbj; Sun, 8 Mar 2015 15:53:14 -0700 (PDT) X-Received: by 10.55.51.194 with SMTP id z185mr49848448qkz.84.1425855194286; Sun, 08 Mar 2015 15:53:14 -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 z20si16676462qge.38.2015.03.08.15.53.12 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 08 Mar 2015 15:53:14 -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 1YUk4N-0000jd-13; Sun, 08 Mar 2015 22:53:11 +0000 Received: from mail-ob0-f169.google.com ([209.85.214.169]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YUk4E-0000iv-Tb for lng-odp@lists.linaro.org; Sun, 08 Mar 2015 22:53:02 +0000 Received: by obcva2 with SMTP id va2so11617768obc.13 for ; Sun, 08 Mar 2015 15:52:57 -0700 (PDT) X-Received: by 10.202.210.13 with SMTP id j13mr18099028oig.131.1425855177598; Sun, 08 Mar 2015 15:52:57 -0700 (PDT) Received: from localhost.localdomain (cpe-24-28-70-239.austin.res.rr.com. [24.28.70.239]) by mx.google.com with ESMTPSA id ku2sm10720711obc.12.2015.03.08.15.52.56 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 08 Mar 2015 15:52:57 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Sun, 8 Mar 2015 17:52:45 -0500 Message-Id: <1425855170-4191-2-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1425855170-4191-1-git-send-email-bill.fischofer@linaro.org> References: <1425855170-4191-1-git-send-email-bill.fischofer@linaro.org> X-Topics: crypto patch Subject: [lng-odp] [PATCHv3 2/7] validation: crypto: add unit tests for strong type display functions 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: 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.42 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/crypto/odp_crypto_test_async_inp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/validation/crypto/odp_crypto_test_async_inp.c b/test/validation/crypto/odp_crypto_test_async_inp.c index 9e4e9f1..feefd49 100644 --- a/test/validation/crypto/odp_crypto_test_async_inp.c +++ b/test/validation/crypto/odp_crypto_test_async_inp.c @@ -60,6 +60,8 @@ static void alg_test(enum odp_crypto_op op, rc = odp_crypto_session_create(&ses_params, &session, &status); CU_ASSERT(!rc); CU_ASSERT(status == ODP_CRYPTO_SES_CREATE_ERR_NONE); + CU_ASSERT(odp_crypto_session_to_u64(session) != + odp_crypto_session_to_u64(ODP_CRYPTO_SESSION_INVALID)); /* Prepare input data */ odp_packet_t pkt = odp_packet_alloc(pool, input_vec_len); @@ -103,6 +105,8 @@ static void alg_test(enum odp_crypto_op op, } while (event == ODP_EVENT_INVALID); compl_event = odp_crypto_compl_from_event(event); + CU_ASSERT(odp_crypto_compl_to_u64(compl_event) == + odp_crypto_compl_to_u64(odp_crypto_compl_from_event(event))); odp_crypto_compl_result(compl_event, &result); odp_crypto_compl_free(compl_event);