diff options
author | Bill Fischofer <bill.fischofer@linaro.org> | 2015-03-08 17:52:45 -0500 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2015-03-10 13:20:27 +0300 |
commit | a1951ec170b083ab22bdca1869b8c3f7bf4895d0 (patch) | |
tree | 4f976dae57d1b4759651d113663dd438a771abfa /test | |
parent | 1a5d4fc76b49fa0b92ab6f91a270fb1229d9c1b4 (diff) |
validation: crypto: add unit tests for strong type display functions
Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
Reviewed-by: Mike Holmes <mike.holmes@linaro.org>
Reviewed-by: Balasubramanian Manoharan <bala.manoharan@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/validation/crypto/odp_crypto_test_async_inp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/validation/crypto/odp_crypto_test_async_inp.c b/test/validation/crypto/odp_crypto_test_async_inp.c index 9e4e9f149..feefd4964 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); |