aboutsummaryrefslogtreecommitdiff
path: root/paludis
diff options
context:
space:
mode:
authorAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2016-12-03 16:32:22 -0800
committerAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2016-12-03 16:32:22 -0800
commite799bc4946d242266a1948425e3784553e5cb43d (patch)
treed735aaf71cd0852bd7c81b10e1c8b6f63c3b868d /paludis
parent74b914669d14fd28a437b1c10516b3df1188347b (diff)
downloadpaludis-e799bc4946d242266a1948425e3784553e5cb43d.tar.gz
paludis-e799bc4946d242266a1948425e3784553e5cb43d.tar.xz
tests: add an explicit cast for gtest 1.8
The assertion macro in googletest 1.8.0 is unable to infer the cast needed here. Add an explicit cast to boolean. The other assertion is implicitly cast to boolean due to the negation.
Diffstat (limited to 'paludis')
-rw-r--r--paludis/util/stream_holder_TEST.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/paludis/util/stream_holder_TEST.cc b/paludis/util/stream_holder_TEST.cc
index 9628fdd34..34022be9e 100644
--- a/paludis/util/stream_holder_TEST.cc
+++ b/paludis/util/stream_holder_TEST.cc
@@ -38,7 +38,7 @@ TEST(StreamHolder, Convert)
{
StreamHolder<std::stringstream> s("Dog");
ASSERT_FALSE(!s);
- ASSERT_TRUE(s);
+ ASSERT_TRUE(static_cast<bool>(s));
std::stringstream& r(s);
std::stringstream* p(s);