Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(852)

Unified Diff: runtime/vm/thread_test.cc

Issue 1162033005: Fix http://dartbug.com/23578: (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update to ToT. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/vm/thread_test.cc
diff --git a/runtime/vm/thread_test.cc b/runtime/vm/thread_test.cc
index 63dd249aa7bfac6f5889783b9f3b0666f3203b2f..5cb270b6b4fa73a1c9d89bbfe8e85ec698831175 100644
--- a/runtime/vm/thread_test.cc
+++ b/runtime/vm/thread_test.cc
@@ -12,7 +12,10 @@ namespace dart {
UNIT_TEST_CASE(Mutex) {
// This unit test case needs a running isolate.
- Isolate* isolate = Isolate::Init(NULL);
+ Isolate::Flags vm_flags;
+ Dart_IsolateFlags api_flags;
+ vm_flags.CopyTo(&api_flags);
+ Isolate* isolate = Isolate::Init(NULL, api_flags);
Mutex* mutex = new Mutex();
mutex->Lock();
@@ -34,7 +37,10 @@ UNIT_TEST_CASE(Mutex) {
UNIT_TEST_CASE(Monitor) {
// This unit test case needs a running isolate.
- Isolate* isolate = Isolate::Init(NULL);
+ Isolate::Flags vm_flags;
+ Dart_IsolateFlags api_flags;
+ vm_flags.CopyTo(&api_flags);
+ Isolate* isolate = Isolate::Init(NULL, api_flags);
// Thread interrupter interferes with this test, disable interrupts.
isolate->set_thread_state(NULL);
Profiler::EndExecution(isolate);

Powered by Google App Engine
This is Rietveld 408576698