当我使用谷歌测试和谷歌模拟,设置为“信息”的诊断水平,我得到的消息是这样的:为什么Google测试不打印堆栈跟踪或文件名?
Uninteresting mock function call - taking default action specified at:
src/pkgtest/test_Foo.cpp:216:
Function call: GetBar()
Returns: 4-byte object <00-00 00-00>
Stack trace:
Uninteresting mock function call - taking default action specified at:
src/pkgtest/test_Foo.cpp:126:
Function call: GetBaz()
Returns: {}
Stack trace:
unknown file: Failure
C++ exception with description "Uninteresting mock function call - returning default value.
Function call: CreateGrille(@0x7fff6a557050 { 16-byte object <80-D8 BB-01 00-00 00-00 70-D8 BB-01 00-00 00-00> })
The mock function has no default action set, and its return type has no default value set." thrown in the test body.
我找不到为什么谷歌测试/模拟将不打印互联网上的东西堆栈跟踪或声明“未知文件”。教我如何正确转储堆栈跟踪需要做什么?
(我在Linux上使用克++ 4.9,如果有差别。)
为什么不问库供应商? – SergeyA
你为什么认为它应该返回一个堆栈跟踪? –
@CaptainObvlious因为它说“堆栈跟踪:”没有任何东西。这似乎暗示应该有什么东西。 – SCFrench