Commit 209fa4a8 authored by Peter Griess's avatar Peter Griess

Explicitly use !basic_istream::fail() in test.

Summary:
- Looks like libc++ doesn't support operator bool() for streams? Use
!fail() explicitly to work around this.

Test Plan:
- fbconfig -r folly && fbmake runtests
- ./configure && make check on Ubuntu/FC/Mac

Reviewed By: andrei.alexandrescu@fb.com

FB internal diff: D998596
parent c103a338
......@@ -1029,7 +1029,7 @@ sed nisl. In diam lacus, lobortis ut posuere nec, ornare id quam.";
ifstream input(f);
fbstring line;
FOR_EACH (i, v) {
EXPECT_TRUE(getline(input, line));
EXPECT_TRUE(!getline(input, line).fail());
EXPECT_EQ(line, *i);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment