[Tests/Converter] Fix -Werror=sign-compare error
authorWook Song <wook16.song@samsung.com>
Mon, 10 May 2021 02:31:41 +0000 (11:31 +0900)
committerHyoungJoo Ahn <hello.ahn@samsung.com>
Mon, 10 May 2021 05:58:14 +0000 (14:58 +0900)
This patch fixes a build error related to -Werror=sign-compare. Note
that this error occurs while building the source code using gcc-7.5.

Signed-off-by: Wook Song <wook16.song@samsung.com>
tests/nnstreamer_converter/unittest_converter.cc

index 5eaca62..9105732 100644 (file)
@@ -134,7 +134,7 @@ TEST (tensorConverterCustom, normal0)
   EXPECT_EQ (setPipelineStateSync (pipeline, GST_STATE_PLAYING, UNITTEST_STATECHANGE_TIMEOUT), 0);\r
   g_usleep (1000000);\r
 \r
-  EXPECT_EQ (1, *received);\r
+  EXPECT_EQ (1U, *received);\r
   _wait_pipeline_save_files (tmp_tensor_raw, content1, len1, 230400, TEST_TIMEOUT_MS);\r
   _wait_pipeline_save_files (tmp_flex_to_tensor, content2, len2, 230400, TEST_TIMEOUT_MS);\r
   EXPECT_EQ (len1, len2);\r