[Tests/Plugins] Avoid warnings caused by a GCC bug related to gtest
authorWook Song <wook16.song@samsung.com>
Wed, 18 Sep 2019 08:43:59 +0000 (17:43 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Thu, 19 Sep 2019 10:20:02 +0000 (19:20 +0900)
commit854d50fd146a9b28d138d563929b04485a824893
treedf011c9ce286d28980f4d8e1c5840ec3e1411fbe
parentae8c2245e71fb4d0fb46233afdc304ede0f7da17
[Tests/Plugins] Avoid warnings caused by a GCC bug related to gtest

A GCC bug [1] might cause warnings related to 'conversion-null' when
using googletest macros with !FALSE as arguments. Therefore, in the case
that Werror is true, the build would be broken by this bug. To avoid
such situation, this patch replaces EXPECT_EQs in the plugin unit tests
with EXPECT_TRUE or EXPECT_FALSE.

[1] https://github.com/google/googletest/issues/322

Signed-off-by: Wook Song <wook16.song@samsung.com>
tests/nnstreamer_plugins/unittest_plugins.cpp