From: Sangjung Woo Date: Wed, 6 Dec 2023 04:43:01 +0000 (+0900) Subject: [UTC][nnstreamer][Non-ACR] Fix the wrong test case X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f515742665be5016c7846d8731cf9039b503805c;p=test%2Ftct%2Fnative%2Fapi.git [UTC][nnstreamer][Non-ACR] Fix the wrong test case 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 --- diff --git a/src/utc/nnstreamer/utc-nnstreamer-single.c b/src/utc/nnstreamer/utc-nnstreamer-single.c index 3445166be..cb142dfac 100644 --- a/src/utc/nnstreamer/utc-nnstreamer-single.c +++ b/src/utc/nnstreamer/utc-nnstreamer-single.c @@ -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);