aboutsummaryrefslogtreecommitdiff
path: root/paludis/set_file_TEST.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/set_file_TEST.cc')
-rw-r--r--paludis/set_file_TEST.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/paludis/set_file_TEST.cc b/paludis/set_file_TEST.cc
index 24329f1c6..2a4d1e647 100644
--- a/paludis/set_file_TEST.cc
+++ b/paludis/set_file_TEST.cc
@@ -91,7 +91,7 @@ TEST(SetFile, Simple)
{
SafeIFStream ff(FSPath("set_file_TEST_dir/simple1"));
- ASSERT_TRUE(ff);
+ ASSERT_TRUE(bool(ff));
std::string g((std::istreambuf_iterator<char>(ff)), std::istreambuf_iterator<char>());
EXPECT_EQ("# this is a comment\n\nfoo/bar\n>=bar/baz-1.23\n\n# the end\nmoo/oink\n", g);
}
@@ -109,7 +109,7 @@ TEST(SetFile, Simple)
{
SafeIFStream ff(FSPath("set_file_TEST_dir/simple1"));
- ASSERT_TRUE(ff);
+ ASSERT_TRUE(bool(ff));
std::string g((std::istreambuf_iterator<char>(ff)), std::istreambuf_iterator<char>());
EXPECT_EQ("# this is a comment\n\nfoo/bar\n\n# the end\nmoo/oink\n", g);
}
@@ -149,7 +149,7 @@ TEST(SetFile, PaludisConf)
{
SafeIFStream ff(FSPath("set_file_TEST_dir/paludisconf1"));
- ASSERT_TRUE(ff);
+ ASSERT_TRUE(bool(ff));
std::string g((std::istreambuf_iterator<char>(ff)), std::istreambuf_iterator<char>());
EXPECT_EQ("# this is a comment\n\n? foo/bar\n* >=bar/baz-1.23\n\n* set\n? settee\n\n# the end\n* moo/oink\n* couch\n", g);
}
@@ -168,7 +168,7 @@ TEST(SetFile, PaludisConf)
{
SafeIFStream ff(FSPath("set_file_TEST_dir/paludisconf1"));
- ASSERT_TRUE(ff);
+ ASSERT_TRUE(bool(ff));
std::string g((std::istreambuf_iterator<char>(ff)), std::istreambuf_iterator<char>());
EXPECT_EQ("# this is a comment\n\n? foo/bar\n\n? settee\n\n# the end\n* moo/oink\n* couch\n", g);
}