New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 758728 link

Starred by 1 user

Issue metadata

Status: Archived
Owner: ----
Closed: Jan 10
Cc:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

gtest marks crashed test case as OK test case

Project Member Reported by hzl@chromium.org, Aug 24 2017

Issue description

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.

 
Status: Archived (was: Untriaged)
Archiving P3s older than 1 year with no owner or component.

Sign in to add a comment