[UTC][nnstreamer][Non-ACR] Fix the wrong test case 59/302459/1
authorSangjung Woo <sangjung.woo@samsung.com>
Wed, 6 Dec 2023 04:43:01 +0000 (13:43 +0900)
committerSangjung Woo <sangjung.woo@samsung.com>
Thu, 7 Dec 2023 05:31:36 +0000 (14:31 +0900)
One unit test of the nnstreamer module has the wrong test when updating
the dimension of the input tensor. This patch fixes it.

Change-Id: I03f151ec3df38eaa103013eb6243889482bcb8e9
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
src/utc/nnstreamer/utc-nnstreamer-single.c

index 3445166..cb142df 100644 (file)
@@ -415,8 +415,8 @@ int utc_ml_single_set_input_info_p (void)
   assert_eq (status, ML_ERROR_NONE);
 
   ml_tensors_info_get_tensor_dimension (in_info, 0, res_dim);
-  /* dim change */
-  res_dim[3] += 1;
+  /* dim change (1:0:0:0 > 2:0:0:0) */
+  res_dim[0] += 1;
   status = ml_tensors_info_set_tensor_dimension (in_info, 0, res_dim);
   assert_eq (status, ML_ERROR_NONE);