Commit ef028e3b authored by Jeff Thomas's avatar Jeff Thomas Committed by Facebook GitHub Bot

Add async stack trace to CO_TEST_P

Summary: Add async stack trace to `CO_TEST_P`

Reviewed By: ispeters

Differential Revision: D29800378

fbshipit-source-id: ce7a22f545f2a55bd02ad5535f29aea094063bfe
parent e121b8f6
......@@ -133,7 +133,13 @@
test_suite_name, test_name)::gtest_registering_dummy_ = \
GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)::AddToRegistry(); \
void GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)::TestBody() { \
folly::coro::blockingWait(co_TestBody()); \
try { \
folly::coro::blockingWait(co_TestBody()); \
} catch (const std::exception& ex) { \
GTEST_LOG_(ERROR) << ex.what() << ", async stack trace: " \
<< folly::exception_tracer::getAsyncTrace(ex); \
throw; \
} \
} \
folly::coro::Task<void> GTEST_TEST_CLASS_NAME_( \
test_suite_name, test_name)::co_TestBody()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment