From 4d686edb7f7e3fa0e96a9d4daef5d731e8279413 Mon Sep 17 00:00:00 2001 From: wyy Date: Fri, 15 Aug 2014 22:30:52 +0800 Subject: [PATCH] update unittest for compiling ok in mac --- test/unittest/TSegments.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unittest/TSegments.cpp b/test/unittest/TSegments.cpp index 41c9d65..803ea02 100644 --- a/test/unittest/TSegments.cpp +++ b/test/unittest/TSegments.cpp @@ -73,7 +73,7 @@ TEST(MPSegmentTest, Test2) string eRes; { ifstream ifs("../test/testdata/review.100.res"); - ASSERT_TRUE(ifs); + ASSERT_TRUE(!!ifs); eRes << ifs; } string res; @@ -90,7 +90,7 @@ TEST(MPSegmentTest, Test2) res += '\n'; } ofstream ofs("../test/testdata/review.100.res"); - ASSERT_TRUE(ofs); + ASSERT_TRUE(!!ofs); ofs << res; }