| 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/syscalls.h> | 8 #include <magenta/syscalls.h> |
| 9 #include <mxio/util.h> | 9 #include <mxio/util.h> |
| 10 #include <pthread.h> | 10 #include <pthread.h> |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 // Tests that are invalid, wedge, or cause panics. | 28 // Tests that are invalid, wedge, or cause panics. |
| 29 const char* kSkip[] = { | 29 const char* kSkip[] = { |
| 30 // These expect a file to exist that we aren't putting in the image. | 30 // These expect a file to exist that we aren't putting in the image. |
| 31 "Read", | 31 "Read", |
| 32 "FileLength", | 32 "FileLength", |
| 33 "FilePosition", | 33 "FilePosition", |
| 34 // Crash and then Hang. | 34 // Crash and then Hang. |
| 35 "ArrayLengthMaxElements", | 35 "ArrayLengthMaxElements", |
| 36 "Int8ListLengthMaxElements", | 36 "Int8ListLengthMaxElements", |
| 37 // Crashes in realloc. | |
| 38 "LargeMap", | |
| 39 // The profiler is turned off. | 37 // The profiler is turned off. |
| 40 "Profiler_AllocationSampleTest", | 38 "Profiler_AllocationSampleTest", |
| 41 "Profiler_ArrayAllocation", | 39 "Profiler_ArrayAllocation", |
| 42 "Profiler_BasicSourcePosition", | 40 "Profiler_BasicSourcePosition", |
| 43 "Profiler_BasicSourcePositionOptimized", | 41 "Profiler_BasicSourcePositionOptimized", |
| 44 "Profiler_BinaryOperatorSourcePosition", | 42 "Profiler_BinaryOperatorSourcePosition", |
| 45 "Profiler_BinaryOperatorSourcePositionOptimized", | 43 "Profiler_BinaryOperatorSourcePositionOptimized", |
| 46 "Profiler_ChainedSamples", | 44 "Profiler_ChainedSamples", |
| 47 "Profiler_ClosureAllocation", | 45 "Profiler_ClosureAllocation", |
| 48 "Profiler_CodeTicks", | 46 "Profiler_CodeTicks", |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 "IsolateReload_PendingStaticCall_DefinedToNSM", | 79 "IsolateReload_PendingStaticCall_DefinedToNSM", |
| 82 "IsolateReload_PendingStaticCall_NSMToDefined", | 80 "IsolateReload_PendingStaticCall_NSMToDefined", |
| 83 "ArrayNew_Overflow_Crash", | 81 "ArrayNew_Overflow_Crash", |
| 84 "AllocGeneric_Overflow", | 82 "AllocGeneric_Overflow", |
| 85 "CodeImmutability", | 83 "CodeImmutability", |
| 86 "SNPrint_BadArgs", | 84 "SNPrint_BadArgs", |
| 87 }; | 85 }; |
| 88 | 86 |
| 89 // Bugs to fix, or things that are not yet impelemnted. | 87 // Bugs to fix, or things that are not yet impelemnted. |
| 90 const char* kBugs[] = { | 88 const char* kBugs[] = { |
| 91 // pthreads not using specified stack size? | |
| 92 "StackOverflowStacktraceInfo", | |
| 93 // Needs OS::GetCurrentThreadCPUMicros. | 89 // Needs OS::GetCurrentThreadCPUMicros. |
| 94 "Timeline_Dart_TimelineGetTrace", | 90 "Timeline_Dart_TimelineGetTrace", |
| 95 "Timeline_Dart_TimelineGetTraceOnlyDartEvents", | 91 "Timeline_Dart_TimelineGetTraceOnlyDartEvents", |
| 96 "Timeline_Dart_TimelineGetTraceWithDartEvents", | 92 "Timeline_Dart_TimelineGetTraceWithDartEvents", |
| 97 "Timeline_Dart_TimelineGetTraceGlobalOverride", | 93 "Timeline_Dart_TimelineGetTraceGlobalOverride", |
| 98 "Timeline_Dart_GlobalTimelineGetTrace", | 94 "Timeline_Dart_GlobalTimelineGetTrace", |
| 99 "Timeline_Dart_GlobalTimelineGetTrace_Threaded", | 95 "Timeline_Dart_GlobalTimelineGetTrace_Threaded", |
| 100 "TimelineEventDuration", | 96 "TimelineEventDuration", |
| 101 "TimelineEventDurationPrintJSON", | 97 "TimelineEventDurationPrintJSON", |
| 102 "TimelineEventArguments", | 98 "TimelineEventArguments", |
| 103 "TimelineEventArgumentsPrintJSON", | 99 "TimelineEventArgumentsPrintJSON", |
| 104 "TimelineEventCallbackRecorderBasic", | 100 "TimelineEventCallbackRecorderBasic", |
| 105 "TimelineAnalysis_ThreadBlockCount", | 101 "TimelineAnalysis_ThreadBlockCount", |
| 106 "TimelineRingRecorderJSONOrder", | 102 "TimelineRingRecorderJSONOrder", |
| 107 "TimelinePauses_BeginEnd", | 103 "TimelinePauses_BeginEnd", |
| 108 // Needs NativeSymbolResolver | 104 // Needs NativeSymbolResolver |
| 109 "Service_PersistentHandles", | 105 "Service_PersistentHandles", |
| 110 // Crashes in realloc: | |
| 111 "FindCodeObject", | |
| 112 "SourceReport_Coverage_AllFunctions_ForceCompile", | |
| 113 // pthread TLS destructors are not run. | 106 // pthread TLS destructors are not run. |
| 114 "ThreadIterator_AddFindRemove", | 107 "ThreadIterator_AddFindRemove", |
| 115 }; | 108 }; |
| 116 | 109 |
| 117 | 110 |
| 118 static bool contains(const char** list, intptr_t len, const char* str) { | 111 static bool contains(const char** list, intptr_t len, const char* str) { |
| 119 for (intptr_t i = 0; i < len; i++) { | 112 for (intptr_t i = 0; i < len; i++) { |
| 120 if (strcmp(list[i], str) == 0) { | 113 if (strcmp(list[i], str) == 0) { |
| 121 return true; | 114 return true; |
| 122 } | 115 } |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 RETURN_IF_ERROR(status); | 432 RETURN_IF_ERROR(status); |
| 440 | 433 |
| 441 // Complain if we didn't try to run all of the tests. | 434 // Complain if we didn't try to run all of the tests. |
| 442 if (test_list_index != lines_count) { | 435 if (test_list_index != lines_count) { |
| 443 fprintf(stderr, "Failed to attempt all the tests!\n"); | 436 fprintf(stderr, "Failed to attempt all the tests!\n"); |
| 444 fflush(0); | 437 fflush(0); |
| 445 return -1; | 438 return -1; |
| 446 } | 439 } |
| 447 return 0; | 440 return 0; |
| 448 } | 441 } |
| OLD | NEW |