Index: test/cctest/test-debug.cc |
=================================================================== |
--- test/cctest/test-debug.cc (revision 4525) |
+++ test/cctest/test-debug.cc (working copy) |
@@ -436,6 +436,12 @@ |
} |
+void ForceUnloadDebugger() { |
+ Debugger::never_unload_debugger_ = false; |
+ Debugger::UnloadDebugger(); |
+} |
+ |
+ |
} } // namespace v8::internal |
@@ -6146,5 +6152,8 @@ |
v8::Local<v8::Context> context1 = v8::Debug::GetDebugContext(); |
v8::Local<v8::Context> context2 = v8::Debug::GetDebugContext(); |
CHECK_EQ(*context1, *context2); |
+ // Make sure debugger is unloaded before running other tests. |
+ v8::internal::ForceUnloadDebugger(); |
+ CheckDebuggerUnloaded(); |
} |