mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 03:30:34 +08:00
ts(gtest): dump exception message from EXPECT_NO_THROW()
This commit is contained in:
parent
4f288a1e28
commit
a55cc07548
@ -9235,6 +9235,10 @@ class NativeArray {
|
||||
try { \
|
||||
GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); \
|
||||
} \
|
||||
catch (const std::exception& e) { \
|
||||
std::cerr << "Exception message: " << e.what() << std::endl; \
|
||||
goto GTEST_CONCAT_TOKEN_(gtest_label_testnothrow_, __LINE__); \
|
||||
} \
|
||||
catch (...) { \
|
||||
goto GTEST_CONCAT_TOKEN_(gtest_label_testnothrow_, __LINE__); \
|
||||
} \
|
||||
|
Loading…
Reference in New Issue
Block a user