From 727f73fea1ae734d01875d9ab9040131a4c424a5 Mon Sep 17 00:00:00 2001 From: Jaeyun Jung Date: Fri, 8 Sep 2023 11:44:10 +0900 Subject: [PATCH] [Test] cleanup testcases Code clean and fix error case, now rank limit of nnstreamer is changed to 16. Signed-off-by: Jaeyun Jung --- tests/capi/unittest_capi_datatype_consistency.cc | 3 +-- tests/capi/unittest_capi_inference.cc | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/capi/unittest_capi_datatype_consistency.cc b/tests/capi/unittest_capi_datatype_consistency.cc index 74bc2c6b..bbd92aad 100644 --- a/tests/capi/unittest_capi_datatype_consistency.cc +++ b/tests/capi/unittest_capi_datatype_consistency.cc @@ -25,8 +25,7 @@ */ TEST (nnstreamer_datatypes, test_all_1) { - EXPECT_EQ (8, (int) NNS_TENSOR_RANK_LIMIT); - EXPECT_EQ (16, (int) ML_TENSOR_RANK_LIMIT); + EXPECT_EQ ((int) NNS_TENSOR_RANK_LIMIT, (int) ML_TENSOR_RANK_LIMIT); /** @todo restore this TC when NNS_TENSOR_SIZE_LIMIT is changed to 256 */ // EXPECT_EQ ((int) NNS_TENSOR_SIZE_LIMIT, (int) ML_TENSOR_SIZE_LIMIT); EXPECT_EQ (sizeof (tensor_dim[0]), sizeof (ml_tensor_dimension[0])); diff --git a/tests/capi/unittest_capi_inference.cc b/tests/capi/unittest_capi_inference.cc index ca68c001..076b1b78 100644 --- a/tests/capi/unittest_capi_inference.cc +++ b/tests/capi/unittest_capi_inference.cc @@ -3615,9 +3615,6 @@ TEST (nnstreamer_capi_util, get_nth_info_00) status = ml_tensors_info_destroy (info); ASSERT_EQ (status, ML_ERROR_NONE); - - info_s = nullptr; - tinfo_s = nullptr; } /**