Only run FBString.testConstructionFromLiteralZero under GNU libstdc++
authorPeter Griess <pgriess@fb.com>
Wed, 9 Oct 2013 08:24:28 +0000 (01:24 -0700)
committerSara Golemon <sgolemon@fb.com>
Thu, 24 Oct 2013 21:53:41 +0000 (14:53 -0700)
commit60f2c87ddcc00799c9b0a4d42c8d56a259298e54
treefeaaec30b2e5f78baae01b548e81d1abefe2fd09
parent9d456e4f65bb7bdf84c2e41dd4fa9820588726b5
Only run FBString.testConstructionFromLiteralZero under GNU libstdc++

Summary:
- This test verifies the behavior of std::string(0), which the GNU
library expects to throw an std::logic_error. Other libraries may have
other behaviors; libc++ segfaults.

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

Reviewed By: simpkins@fb.com

FB internal diff: D1003125
folly/test/FBStringTest.cpp