| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 <fcntl.h> | 5 #include <fcntl.h> |
| 6 #include <launchpad/launchpad.h> | 6 #include <launchpad/launchpad.h> |
| 7 #include <launchpad/vmo.h> | 7 #include <launchpad/vmo.h> |
| 8 #include <magenta/status.h> | 8 #include <magenta/status.h> |
| 9 #include <magenta/syscalls.h> | 9 #include <magenta/syscalls.h> |
| 10 #include <magenta/syscalls/object.h> | 10 #include <magenta/syscalls/object.h> |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 "IsolateReload_PendingConstructorCall_ConcreteToAbstract", | 75 "IsolateReload_PendingConstructorCall_ConcreteToAbstract", |
| 76 "IsolateReload_PendingUnqualifiedCall_InstanceToStatic", | 76 "IsolateReload_PendingUnqualifiedCall_InstanceToStatic", |
| 77 "IsolateReload_PendingStaticCall_DefinedToNSM", | 77 "IsolateReload_PendingStaticCall_DefinedToNSM", |
| 78 "IsolateReload_PendingStaticCall_NSMToDefined", | 78 "IsolateReload_PendingStaticCall_NSMToDefined", |
| 79 "ArrayNew_Overflow_Crash", | 79 "ArrayNew_Overflow_Crash", |
| 80 "SNPrint_BadArgs", | 80 "SNPrint_BadArgs", |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 // Bugs to fix, or things that are not yet implemented. | 83 // Bugs to fix, or things that are not yet implemented. |
| 84 const char* kBugs[] = { | 84 const char* kBugs[] = { |
| 85 // Need OS::GetCurrentThreadCPUMicros. | |
| 86 "Timeline_Dart_TimelineGetTraceOnlyDartEvents", | |
| 87 "Timeline_Dart_TimelineGetTraceWithDartEvents", | |
| 88 "Timeline_Dart_GlobalTimelineGetTrace", | |
| 89 "TimelineEventDuration", | |
| 90 "TimelineEventDurationPrintJSON", | |
| 91 "TimelineEventArguments", | |
| 92 "TimelineEventArgumentsPrintJSON", | |
| 93 "TimelineEventCallbackRecorderBasic", | |
| 94 "TimelineAnalysis_ThreadBlockCount", | |
| 95 "TimelineRingRecorderJSONOrder", | |
| 96 "TimelinePauses_BeginEnd", | |
| 97 "Timeline_Dart_TimelineGetTrace", | |
| 98 "Timeline_Dart_TimelineGetTraceGlobalOverride", | |
| 99 "Timeline_Dart_GlobalTimelineGetTrace_Threaded", | |
| 100 | |
| 101 // Need VirtualMemory reservation with mmap. | |
| 102 "ArrayLengthMaxElements", | |
| 103 "Int8ListLengthMaxElements", | |
| 104 | |
| 105 // Assumes initial thread's stack is the same size as spawned thread stacks. | 85 // Assumes initial thread's stack is the same size as spawned thread stacks. |
| 106 "StackOverflowStackTraceInfo", | 86 "StackOverflowStackTraceInfo", |
| 107 }; | 87 }; |
| 108 // clang-format on | 88 // clang-format on |
| 109 | 89 |
| 110 static bool contains(const char** list, intptr_t len, const char* str) { | 90 static bool contains(const char** list, intptr_t len, const char* str) { |
| 111 for (intptr_t i = 0; i < len; i++) { | 91 for (intptr_t i = 0; i < len; i++) { |
| 112 if (strcmp(list[i], str) == 0) { | 92 if (strcmp(list[i], str) == 0) { |
| 113 return true; | 93 return true; |
| 114 } | 94 } |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 RETURN_IF_ERROR(status); | 424 RETURN_IF_ERROR(status); |
| 445 | 425 |
| 446 // Complain if we didn't try to run all of the tests. | 426 // Complain if we didn't try to run all of the tests. |
| 447 if (test_list_index != lines_count) { | 427 if (test_list_index != lines_count) { |
| 448 fprintf(stderr, "Failed to attempt all the tests!\n"); | 428 fprintf(stderr, "Failed to attempt all the tests!\n"); |
| 449 fflush(0); | 429 fflush(0); |
| 450 return -1; | 430 return -1; |
| 451 } | 431 } |
| 452 return 0; | 432 return 0; |
| 453 } | 433 } |
| OLD | NEW |