Index: test/cctest/test-debug.cc |
diff --git a/test/cctest/test-debug.cc b/test/cctest/test-debug.cc |
index 60d5f0e450b62d232c65a0bc6cab0fc389bc2db7..e00ad5a271830f0ef85bbd513efe4ae27a465515 100644 |
--- a/test/cctest/test-debug.cc |
+++ b/test/cctest/test-debug.cc |
@@ -4026,15 +4026,12 @@ TEST(StepWithException) { |
TEST(DebugBreak) { |
+#ifdef VERIFY_HEAP |
+ i::FLAG_verify_heap = true; |
+#endif |
v8::HandleScope scope; |
DebugLocalContext env; |
- // This test should be run with option --verify-heap. As --verify-heap is |
- // only available in debug mode only check for it in that case. |
-#ifdef DEBUG |
- CHECK(v8::internal::FLAG_verify_heap); |
-#endif |
- |
// Register a debug event listener which sets the break flag and counts. |
v8::Debug::SetDebugEventListener(DebugEventBreak); |