From: Peter Griess Date: Wed, 20 Nov 2013 21:29:43 +0000 (-0800) Subject: Revert D998590 X-Git-Tag: v0.22.0~788 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c807fe1f40fb1e02ae9617195ade148dd110c473;p=folly.git Revert D998590 Summary: - It looks like Xcode 5.0.2 / clang 500.2.79 changed this behavior. The prior behavior was seen against Xcode 5.0.1 / clang 500.2.75. Blerg. If we really have to support different Xcode flavors we can come up with a real solution for this, but for now just take advantage of the fact that clang and gcc seem to agree on this. Test Plan: - make check on Mac OS X Reviewed By: andrei.alexandrescu@fb.com FB internal diff: D1066272 Blame Revision: D998590 --- diff --git a/folly/test/ScopeGuardTest.cpp b/folly/test/ScopeGuardTest.cpp index 71a86e90..f8e10c5c 100644 --- a/folly/test/ScopeGuardTest.cpp +++ b/folly/test/ScopeGuardTest.cpp @@ -127,11 +127,7 @@ TEST(ScopeGuard, GuardException) { throw std::runtime_error("destructors should never throw!"); }); }, -#if FOLLY_USE_LIBCPP - "terminate called throwing an exception" -#else - "destructors should never throw" -#endif + "destructors should never throw!" ); }