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
throw std::runtime_error("destructors should never throw!");
});
},
- "destructors should never throw");
+#ifdef _LIBCPP_VERSION
+ "terminate called throwing an exception"
+#else
+ "destructors should never throw"
+#endif
+ );
}
/**