OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 "platform/assert.h" | 6 #include "platform/assert.h" |
| 7 #include "platform/utils.h" |
7 #include "vm/dart_api_impl.h" | 8 #include "vm/dart_api_impl.h" |
8 #include "vm/dart_api_state.h" | 9 #include "vm/dart_api_state.h" |
9 #include "vm/thread.h" | 10 #include "vm/thread.h" |
10 #include "vm/unit_test.h" | 11 #include "vm/unit_test.h" |
11 #include "vm/utils.h" | |
12 #include "vm/verifier.h" | 12 #include "vm/verifier.h" |
13 | 13 |
14 namespace dart { | 14 namespace dart { |
15 | 15 |
16 #if defined(TARGET_ARCH_IA32) // only ia32 can run execution tests. | 16 #if defined(TARGET_ARCH_IA32) // only ia32 can run execution tests. |
17 | 17 |
18 TEST_CASE(ErrorHandles) { | 18 TEST_CASE(ErrorHandles) { |
19 const char* kScriptChars = | 19 const char* kScriptChars = |
20 "class TestClass {\n" | 20 "class TestClass {\n" |
21 " static void testMain() {\n" | 21 " static void testMain() {\n" |
(...skipping 2979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3001 // We should have received the expected number of interrupts. | 3001 // We should have received the expected number of interrupts. |
3002 EXPECT_EQ(kInterruptCount, interrupt_count); | 3002 EXPECT_EQ(kInterruptCount, interrupt_count); |
3003 | 3003 |
3004 // Give the spawned thread enough time to properly exit. | 3004 // Give the spawned thread enough time to properly exit. |
3005 Isolate::SetInterruptCallback(saved); | 3005 Isolate::SetInterruptCallback(saved); |
3006 } | 3006 } |
3007 | 3007 |
3008 #endif // TARGET_ARCH_IA32. | 3008 #endif // TARGET_ARCH_IA32. |
3009 | 3009 |
3010 } // namespace dart | 3010 } // namespace dart |
OLD | NEW |