aboutsummaryrefslogtreecommitdiff
path: root/paludis/util/process_TEST.cc
diff options
context:
space:
mode:
authorAvatar Wouter van Kesteren <woutershep@gmail.com> 2015-05-02 20:32:32 +0200
committerAvatar Wouter van Kesteren <woutershep@gmail.com> 2015-05-02 21:57:30 +0200
commitfe3f71c48c42c17811ad612b00c7006dc57a370c (patch)
tree0ff143a4e0008381509f45b27ab8f1d97966cc0d /paludis/util/process_TEST.cc
parent16acb5e446ea244c88cae8c25b4a6bd9cc8bae7d (diff)
downloadpaludis-fe3f71c48c42c17811ad612b00c7006dc57a370c.tar.gz
paludis-fe3f71c48c42c17811ad612b00c7006dc57a370c.tar.xz
Make stream conversions explicit for gtest
Change-Id: I74b0915cdfb11ff6f42151ba5ac2452b8e9a4052
Diffstat (limited to 'paludis/util/process_TEST.cc')
-rw-r--r--paludis/util/process_TEST.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/paludis/util/process_TEST.cc b/paludis/util/process_TEST.cc
index 09535547a..8eedf0306 100644
--- a/paludis/util/process_TEST.cc
+++ b/paludis/util/process_TEST.cc
@@ -129,7 +129,7 @@ TEST(Process, GrabStdoutLong)
std::string s;
for (int x(1) ; x <= 100000 ; ++x)
{
- ASSERT_TRUE(std::getline(stdout_stream, s));
+ ASSERT_TRUE(bool(std::getline(stdout_stream, s)));
ASSERT_EQ(stringify(x), s);
}
@@ -265,7 +265,7 @@ TEST(Process, CapturedPipeCommand)
EXPECT_EQ(13, one_two_three_process.run().wait());
std::string line;
- ASSERT_TRUE(std::getline(stdout_stream, line));
+ ASSERT_TRUE(bool(std::getline(stdout_stream, line)));
EXPECT_EQ("2", line);
ASSERT_TRUE(! std::getline(stdout_stream, line));
}