How to get backtrace information from exception in googletest?

后端 未结 2 1480
独厮守ぢ
独厮守ぢ 2021-01-06 14:32

I\'m trying to do some semi test driven design, and occasionally when I implement a new feature, it will have an exception somewhere. All gtest tells me is what the excepti

2条回答
  •  再見小時候
    2021-01-06 14:49

    In a more automatic way, you can add your own listener and then combine the output of failing test-cases by printing additionally the backtrace using How to make backtrace()/backtrace_symbols() print the function names?

提交回复
热议问题