aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Mark Loeser <halcy0n@gentoo.org> 2006-01-17 01:11:31 +0000
committerAvatar Mark Loeser <halcy0n@gentoo.org> 2006-01-17 01:11:31 +0000
commitd1472a68bec64eaf211ea5d8f7194830c716addd (patch)
tree764394ce1729e8197213e02175e8345d8fdd3c5c
parent23cf6f01d9dbe8ccb615e092ff6e318178e0c847 (diff)
downloadpaludis-d1472a68bec64eaf211ea5d8f7194830c716addd.tar.gz
paludis-d1472a68bec64eaf211ea5d8f7194830c716addd.tar.xz
Fix: warning: suggest parentheses around assignment used as truth value
-rw-r--r--paludis/pstream_TEST.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/paludis/pstream_TEST.cc b/paludis/pstream_TEST.cc
index fd99eca..bb4a873 100644
--- a/paludis/pstream_TEST.cc
+++ b/paludis/pstream_TEST.cc
@@ -45,7 +45,7 @@ namespace test_cases
void run()
{
PStream * p;
- TEST_CHECK(p = new PStream("echo hi"));
+ TEST_CHECK((p = new PStream("echo hi")));
std::string line;
TEST_CHECK(std::getline(*p, line));
TEST_CHECK_EQUAL(line, "hi");
@@ -93,7 +93,7 @@ namespace test_cases
void run()
{
PStream * p;
- TEST_CHECK(p = new PStream("cat /doesnotexist 2>&1"));
+ TEST_CHECK((p = new PStream("cat /doesnotexist 2>&1")));
std::string line;
TEST_CHECK(std::getline(*p, line));
TEST_CHECK(! line.empty());