OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #include "include/dart_api.h" | 5 #include "include/dart_api.h" |
6 #include "include/dart_native_api.h" | 6 #include "include/dart_native_api.h" |
7 | 7 |
8 #include "vm/unit_test.h" | 8 #include "vm/unit_test.h" |
9 | 9 |
10 // Custom Isolate Test. | 10 // Custom Isolate Test. |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 } | 317 } |
318 | 318 |
319 | 319 |
320 UNIT_TEST_CASE(CustomIsolates) { | 320 UNIT_TEST_CASE(CustomIsolates) { |
321 bool saved_flag = FLAG_trace_shutdown; | 321 bool saved_flag = FLAG_trace_shutdown; |
322 FLAG_trace_shutdown = true; | 322 FLAG_trace_shutdown = true; |
323 FLAG_verify_handles = true; | 323 FLAG_verify_handles = true; |
324 #ifdef DEBUG | 324 #ifdef DEBUG |
325 FLAG_verify_on_transition = true; | 325 FLAG_verify_on_transition = true; |
326 #endif | 326 #endif |
| 327 // Cannot verify heap while running compilation in background. |
| 328 // Issue #26149. |
| 329 FLAG_background_compilation = false; |
| 330 // Issue #26150. |
| 331 FLAG_use_osr = false; |
| 332 |
327 event_queue = new EventQueue(); | 333 event_queue = new EventQueue(); |
328 | 334 |
329 Dart_Isolate dart_isolate = TestCase::CreateTestIsolate(); | 335 Dart_Isolate dart_isolate = TestCase::CreateTestIsolate(); |
330 EXPECT(dart_isolate != NULL); | 336 EXPECT(dart_isolate != NULL); |
331 Dart_SetMessageNotifyCallback(&NotifyMessage); | 337 Dart_SetMessageNotifyCallback(&NotifyMessage); |
332 Dart_EnterScope(); | 338 Dart_EnterScope(); |
333 Dart_Handle result; | 339 Dart_Handle result; |
334 | 340 |
335 // Create a test library. | 341 // Create a test library. |
336 Dart_Handle lib = TestCase::LoadTestScript(kCustomIsolateScriptChars, | 342 Dart_Handle lib = TestCase::LoadTestScript(kCustomIsolateScriptChars, |
(...skipping 21 matching lines...) Expand all Loading... |
358 OS::Print("-- Finished event loop --\n"); | 364 OS::Print("-- Finished event loop --\n"); |
359 EXPECT_STREQ("Received: 43", saved_echo); | 365 EXPECT_STREQ("Received: 43", saved_echo); |
360 free(saved_echo); | 366 free(saved_echo); |
361 | 367 |
362 delete event_queue; | 368 delete event_queue; |
363 event_queue = NULL; | 369 event_queue = NULL; |
364 FLAG_trace_shutdown = saved_flag; | 370 FLAG_trace_shutdown = saved_flag; |
365 } | 371 } |
366 | 372 |
367 } // namespace dart | 373 } // namespace dart |
OLD | NEW |