Add "raise(SIGSEGV);" to any gtest test case. And in the stdout, you will see:
I 21.354s TimeoutThread-1-for-delete_temporary_file(ZX1G2268HX) [host]> /usr/local/google/code/clankium4/src/third_party/android_tools/sdk/platform-tools/adb -s ZX1G2268HX shell 'rm -f /data/local/tmp/temp_file-751f3c39bc7d5'
I 21.356s run_tests_on_device(ZX1G2268HX) >>ScopedMainEntryLogger
I 21.357s run_tests_on_device(ZX1G2268HX) Note: Google Test filter = ByteOrderTest.ByteSwap16
I 21.357s run_tests_on_device(ZX1G2268HX) [==========] Running 1 test from 1 test case.
I 21.357s run_tests_on_device(ZX1G2268HX) [----------] Global test environment set-up.
I 21.357s run_tests_on_device(ZX1G2268HX) [----------] 1 test from ByteOrderTest
I 21.357s run_tests_on_device(ZX1G2268HX) [ RUN ] ByteOrderTest.ByteSwap16
I 21.357s run_tests_on_device(ZX1G2268HX) [ CRASHED ]
I 21.357s run_tests_on_device(ZX1G2268HX) [ OK ] ByteOrderTest.ByteSwap16 (980 ms)
I 21.358s run_tests_on_device(ZX1G2268HX) Finished running tests on this device.
I 21.367s Main FINISHED TRY #1/1
I 21.367s Main All tests completed.
C 21.367s Main ********************************************************************************
C 21.367s Main Summary
C 21.367s Main ********************************************************************************
C 21.368s Main [==========] 1 test ran.
C 21.368s Main [ PASSED ] 1 test.
C 21.368s Main ********************************************************************************
The stdout clearly shows that the test case crashed, but it still passes, which should not be expected behavior.
Comment 1 by benhenry@google.com
, Jan 10