[tests] Fix death tests under dcheck_is_configurable.
Prior to this CL: all death tests had been failing on win-asan (dcheck_is_configurable = true) for a while with error "Result: failed to die.". LOG_DCHECK defaults to LOG_INFO severity in these builds, with severity upgraded to LOG_FATAL by FeatureList::SetInstance() if --gtest_internal_run_death_test is in the process' command-line. However, SetInstance() is only invoked on a per-test basis via a TestEventListener, while TestEventListeners are deliberately skipped in death-test sub-processes. This results in death-test sub-processes running with non-FATAL DCHECKs, causing death-test expectations to fail. Full diagnosis @ crbug.com/1057995#c11 This CL changes the production default (LOG_INFO) to a test default (LOG_FATAL) in --gtest_internal_run_death_test processes under DCHECK_IS_CONFIGURABLE. R=chromium-metrics-reviews@google.com, wez@chromium.org Bug: 1057995 Change-Id: Ia7d3f92d72dddc74e17cc9416c0b586dae1fc221 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2208298 Commit-Queue: Gabriel Charette <gab@chromium.org> Reviewed-by:Wez <wez@chromium.org> Auto-Submit: Gabriel Charette <gab@chromium.org> Cr-Commit-Position: refs/heads/master@{#771124}
Showing
Please register or sign in to comment