From 34e0ec71e4e28a4fd833a6bd36f4f164ab014f59 Mon Sep 17 00:00:00 2001 From: Lukasz Wojciechowski Date: Thu, 23 Apr 2020 18:25:54 +0200 Subject: [PATCH] test/security: enable tests for non-implemented ops After re-enabling checks for non-implemented ops in non-debug mode in librte_security set_pkt_metadata and get_userdata functions, tests verifying proper work of tests can be enabled also. Signed-off-by: Lukasz Wojciechowski Acked-by: Akhil Goyal --- app/test/test_security.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app/test/test_security.c b/app/test/test_security.c index 724ce56f4f..3076a4c5a6 100644 --- a/app/test/test_security.c +++ b/app/test/test_security.c @@ -1474,7 +1474,6 @@ test_set_pkt_metadata_inv_context_ops(void) static int test_set_pkt_metadata_inv_context_ops_fun(void) { -#ifdef RTE_DEBUG struct security_unittest_params *ut_params = &unittest_params; struct rte_mbuf m; int params; @@ -1487,9 +1486,6 @@ test_set_pkt_metadata_inv_context_ops_fun(void) TEST_ASSERT_MOCK_CALLS(mock_set_pkt_metadata_exp, 0); return TEST_SUCCESS; -#else - return TEST_SKIPPED; -#endif } /** @@ -1621,7 +1617,6 @@ test_get_userdata_inv_context_ops(void) static int test_get_userdata_inv_context_ops_fun(void) { -#ifdef RTE_DEBUG struct security_unittest_params *ut_params = &unittest_params; uint64_t md = 0xDEADBEEF; ut_params->ctx.ops = &empty_ops; @@ -1632,9 +1627,6 @@ test_get_userdata_inv_context_ops_fun(void) TEST_ASSERT_MOCK_CALLS(mock_get_userdata_exp, 0); return TEST_SUCCESS; -#else - return TEST_SKIPPED; -#endif } /** -- 2.20.1