From 2991545f5883c633aa4cc3b7e27b94651a1c224a Mon Sep 17 00:00:00 2001 From: Yongjoo Ahn Date: Wed, 21 Jun 2023 17:31:16 +0900 Subject: [PATCH] [test] Change datatype_consistency test - Remove tests with value `NNS_TENSOR_SIZE_LIMIT` - Revert later when the value is changed. Signed-off-by: Yongjoo Ahn --- tests/capi/unittest_capi_datatype_consistency.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/capi/unittest_capi_datatype_consistency.cc b/tests/capi/unittest_capi_datatype_consistency.cc index 32d162d..74bc2c6 100644 --- a/tests/capi/unittest_capi_datatype_consistency.cc +++ b/tests/capi/unittest_capi_datatype_consistency.cc @@ -27,7 +27,8 @@ 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_SIZE_LIMIT, (int) ML_TENSOR_SIZE_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])); EXPECT_EQ ((int) _NNS_INT32, (int) ML_TENSOR_TYPE_INT32); EXPECT_EQ ((int) _NNS_UINT32, (int) ML_TENSOR_TYPE_UINT32); @@ -53,7 +54,10 @@ TEST (nnstreamer_datatypes, test_all_2_n) ret = ml_tensors_info_create (&info); EXPECT_EQ (ret, ML_ERROR_NONE); - ret = ml_tensors_info_set_count (info, NNS_TENSOR_SIZE_LIMIT + 1); + /** @todo restore this line when NNS_TENSOR_SIZE_LIMIT is changed to 256 */ + // ret = ml_tensors_info_set_count (info, NNS_TENSOR_SIZE_LIMIT + 1); + ret = ml_tensors_info_set_count ( + info, NNS_TENSOR_SIZE_LIMIT + NNS_TENSOR_SIZE_EXTRA_LIMIT + 1); EXPECT_EQ (ret, ML_ERROR_INVALID_PARAMETER); ret = ml_tensors_info_destroy (info); -- 2.7.4