How to get feedback from exception in googletest?

I try to make some kind of semi-reduced test, and sometimes when I implement a new function, it will have some kind of exception. All gtest tells me what an exception is and does not give me any information about backtrace.

If I run gdb -args --gtest_catch_exceptions = 0, it will stop during testing with an exception, but will not have any return information. It just says:

[ RUN      ] TESTNAME.test_case
EXCEPTION: exception description[Inferior 1 (process 30528) exited with code 0377]
(gdb) bt
No stack.
+1
source share
2 answers
+3

Source: https://habr.com/ru/post/1648261/


All Articles