From fabb53e239b6afa7fa3ac136e60e7132ad2c4d2e Mon Sep 17 00:00:00 2001 From: Sangjung Woo Date: Fri, 22 May 2020 14:26:47 +0900 Subject: [PATCH] [Unittest] Fix a potential bug of unit testcase This patch fixes the potential bug (i.e. pipeline parsing error) of unit testcase when using Protobuf v3.8. Signed-off-by: Sangjung Woo --- tests/nnstreamer_plugins/unittest_plugins.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/nnstreamer_plugins/unittest_plugins.cc b/tests/nnstreamer_plugins/unittest_plugins.cc index a5baa1f..4b8ac02 100644 --- a/tests/nnstreamer_plugins/unittest_plugins.cc +++ b/tests/nnstreamer_plugins/unittest_plugins.cc @@ -3728,7 +3728,7 @@ TEST (test_tensor_filter, framework_auto_ext_pb_03) data_path = g_build_filename (root_path, "tests", "test_models", "data", "5", NULL); ASSERT_TRUE (g_file_test (data_path, G_FILE_TEST_EXISTS)); - str_launch_line = g_strdup_printf ("filesrc location=%s blocksize=-1 ! application/octet-stream ! tensor_converter input-dim=32:32:3:1 input-type=float32 ! tensor_filter name=tfilter framework=caffe2 model=\"%s\",\"%s\" inputname=data input=32:32:3:1 inputtype=float32 output=10:1 outputtype=float32 outputname=softmax ! fakesink", data_path, test_model, test_model_2); + str_launch_line = g_strdup_printf ("filesrc location=%s blocksize=-1 ! application/octet-stream ! tensor_converter input-dim=32:32:3:1 input-type=float32 ! tensor_filter name=tfilter framework=caffe2 model=%s,%s inputname=data input=32:32:3:1 inputtype=float32 output=10:1 outputtype=float32 outputname=softmax ! fakesink", data_path, test_model, test_model_2); TEST_TENSOR_FILTER_AUTO_OPTION_P (str_launch_line, caffe2) g_free (test_model_2); @@ -3757,7 +3757,7 @@ TEST (test_tensor_filter, framework_auto_ext_pb_caffe2_disabled_n) data_path = g_build_filename (root_path, "tests", "test_models", "data", "5", NULL); ASSERT_TRUE (g_file_test (data_path, G_FILE_TEST_EXISTS)); - str_launch_line = g_strdup_printf ("filesrc location=%s blocksize=-1 ! application/octet-stream ! tensor_converter input-dim=32:32:3:1 input-type=float32 ! tensor_filter name=tfilter framework=caffe2 model=\"%s\",\"%s\" inputname=data input=32:32:3:1 inputtype=float32 output=10:1 outputtype=float32 outputname=softmax ! fakesink", data_path, test_model, test_model_2); + str_launch_line = g_strdup_printf ("filesrc location=%s blocksize=-1 ! application/octet-stream ! tensor_converter input-dim=32:32:3:1 input-type=float32 ! tensor_filter name=tfilter framework=caffe2 model=%s,%s inputname=data input=32:32:3:1 inputtype=float32 output=10:1 outputtype=float32 outputname=softmax ! fakesink", data_path, test_model, test_model_2); TEST_TENSOR_FILTER_AUTO_OPTION_N (str_launch_line, fw_name) g_free (test_model); -- 2.7.4