diff options
Diffstat (limited to 'runtime/common_runtime_test.cc')
-rw-r--r-- | runtime/common_runtime_test.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/common_runtime_test.cc b/runtime/common_runtime_test.cc index 0d21de148a..b748e37917 100644 --- a/runtime/common_runtime_test.cc +++ b/runtime/common_runtime_test.cc @@ -132,8 +132,10 @@ void CommonRuntimeTestImpl::SetUp() { FinalizeSetup(); - // Ensure that we're really running with debug checks enabled. - CHECK(gSlowDebugTestFlag); + if (kIsDebugBuild) { + // Ensure that we're really running with debug checks enabled. + CHECK(gSlowDebugTestFlag); + } } void CommonRuntimeTestImpl::FinalizeSetup() { |