Use boolean expects in unit tests 88/988/1
authorRolf Badorek <rolf.badorek@nokia.com>
Fri, 20 Sep 2019 11:20:05 +0000 (14:20 +0300)
committerRolf Badorek <rolf.badorek@nokia.com>
Fri, 20 Sep 2019 11:20:05 +0000 (14:20 +0300)
commitb8cd8b6087862ff04c9e39a0235ebf870c28ce39
tree693e3f2f6eae2ddf4edf14704f9badd77e5e2e58
parent8324d029ce006509ddbc605446d05987c17e0368
Use boolean expects in unit tests

Certain gcc versions will give (per my understanding false positive)
warning when 'EXPECT_EQ' macro is used so that other argument is
'true' or 'false'.

For example, Ubuntu 16.04 has by default such a gcc version.

See some related discussion below:
https://github.com/google/googletest/issues/322

We have defined all compiler warning to be treated as errors, thus
above issue will lead to compilation error.

Simple fix is to use 'EXPECT_TRUE' or 'EXPECT_FALSE' instead. Those are
more readable, and thus better choice anyway.

Signed-off-by: Rolf Badorek <rolf.badorek@nokia.com>
Change-Id: Ib0f3841c1b6fe2cf95eac3e4dc0cbcba9c3c8268
tst/syncstorageimpl_test.cpp