Explicitly use !basic_istream::fail() in test.
authorPeter Griess <pgriess@fb.com>
Thu, 26 Sep 2013 13:55:12 +0000 (08:55 -0500)
committerPeter Griess <pgriess@fb.com>
Tue, 15 Oct 2013 01:46:52 +0000 (18:46 -0700)
commit209fa4a88193af19c1f4446767b2dd6086e789b0
tree484a4997fbc74e302a4513f43e152914c0a47606
parentc103a3387b8e38b86bfc83432f1fb84dd8d18bed
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
folly/test/FBStringTest.cpp