Change ScopeGuardTest to work around libc++'s different terminate() semantics.
authorPeter Griess <pgriess@fb.com>
Thu, 26 Sep 2013 18:43:15 +0000 (13:43 -0500)
committerPeter Griess <pgriess@fb.com>
Tue, 15 Oct 2013 01:46:33 +0000 (18:46 -0700)
commit3b3fa008590ee48a7490e5c71dd39ff5417c5f79
tree2294b5a90c29a673027e9ada233ea346a8b05bb1
parent01d9c7dda77f3a0141324946afedb19036bc1292
Change ScopeGuardTest to work around libc++'s different terminate() semantics.

Summary:
- Looks like the default terminate() in libc++ doesn't reflect the
exception message to stderr. Instead, it just writes a generic
message. Reflect that in the test.

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

Reviewed By: andrei.alexandrescu@fb.com

FB internal diff: D998590
folly/test/ScopeGuardTest.cpp