[test] Change datatype_consistency test
authorYongjoo Ahn <yongjoo1.ahn@samsung.com>
Wed, 21 Jun 2023 08:31:16 +0000 (17:31 +0900)
committerYongjoo Ahn <yongjoo1.ahn@samsung.com>
Thu, 20 Jul 2023 04:48:06 +0000 (13:48 +0900)
- Remove tests with value `NNS_TENSOR_SIZE_LIMIT`
- Revert later when the value is changed.

Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
tests/capi/unittest_capi_datatype_consistency.cc

index 32d162d..74bc2c6 100644 (file)
@@ -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);