| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 "TimelinePauses_BeginEnd", | 96 "TimelinePauses_BeginEnd", |
| 97 "Timeline_Dart_TimelineGetTrace", | 97 "Timeline_Dart_TimelineGetTrace", |
| 98 "Timeline_Dart_TimelineGetTraceGlobalOverride", | 98 "Timeline_Dart_TimelineGetTraceGlobalOverride", |
| 99 "Timeline_Dart_GlobalTimelineGetTrace_Threaded", | 99 "Timeline_Dart_GlobalTimelineGetTrace_Threaded", |
| 100 | 100 |
| 101 // Need VirtualMemory reservation with mmap. | 101 // Need VirtualMemory reservation with mmap. |
| 102 "ArrayLengthMaxElements", | 102 "ArrayLengthMaxElements", |
| 103 "Int8ListLengthMaxElements", | 103 "Int8ListLengthMaxElements", |
| 104 | 104 |
| 105 // Assumes initial thread's stack is the same size as spawned thread stacks. | 105 // Assumes initial thread's stack is the same size as spawned thread stacks. |
| 106 "StackOverflowStacktraceInfo", | 106 "StackOverflowStackTraceInfo", |
| 107 }; | 107 }; |
| 108 // clang-format on | 108 // clang-format on |
| 109 | 109 |
| 110 static bool contains(const char** list, intptr_t len, const char* str) { | 110 static bool contains(const char** list, intptr_t len, const char* str) { |
| 111 for (intptr_t i = 0; i < len; i++) { | 111 for (intptr_t i = 0; i < len; i++) { |
| 112 if (strcmp(list[i], str) == 0) { | 112 if (strcmp(list[i], str) == 0) { |
| 113 return true; | 113 return true; |
| 114 } | 114 } |
| 115 } | 115 } |
| 116 return false; | 116 return false; |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 RETURN_IF_ERROR(status); | 444 RETURN_IF_ERROR(status); |
| 445 | 445 |
| 446 // Complain if we didn't try to run all of the tests. | 446 // Complain if we didn't try to run all of the tests. |
| 447 if (test_list_index != lines_count) { | 447 if (test_list_index != lines_count) { |
| 448 fprintf(stderr, "Failed to attempt all the tests!\n"); | 448 fprintf(stderr, "Failed to attempt all the tests!\n"); |
| 449 fflush(0); | 449 fflush(0); |
| 450 return -1; | 450 return -1; |
| 451 } | 451 } |
| 452 return 0; | 452 return 0; |
| 453 } | 453 } |
| OLD | NEW |