| 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 <magenta/syscalls.h> | 7 #include <magenta/syscalls.h> |
| 8 #include <mxio/util.h> | 8 #include <mxio/util.h> |
| 9 #include <pthread.h> | 9 #include <pthread.h> |
| 10 #include <runtime/sysinfo.h> | 10 #include <runtime/sysinfo.h> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 // The simulator only has 512MB; | 27 // The simulator only has 512MB; |
| 28 const intptr_t kOldGenHeapSizeMB = 256; | 28 const intptr_t kOldGenHeapSizeMB = 256; |
| 29 | 29 |
| 30 // Tests that are invalid, wedge, or cause panics. | 30 // Tests that are invalid, wedge, or cause panics. |
| 31 const char* kSkip[] = { | 31 const char* kSkip[] = { |
| 32 // These expect a file to exist that we aren't putting in the image. | 32 // These expect a file to exist that we aren't putting in the image. |
| 33 "Read", | 33 "Read", |
| 34 "FileLength", | 34 "FileLength", |
| 35 "FilePosition", | 35 "FilePosition", |
| 36 // Hangs. | 36 // Crash and then Hang. |
| 37 "ArrayLengthMaxElements", | 37 "ArrayLengthMaxElements", |
| 38 "Int8ListLengthMaxElements", | 38 "Int8ListLengthMaxElements", |
| 39 // Crashes in realloc. |
| 39 "LargeMap", | 40 "LargeMap", |
| 40 "CompileFunctionOnHelperThread", | |
| 41 // The profiler is turned off. | 41 // The profiler is turned off. |
| 42 "Profiler_AllocationSampleTest", | 42 "Profiler_AllocationSampleTest", |
| 43 "Profiler_ArrayAllocation", | 43 "Profiler_ArrayAllocation", |
| 44 "Profiler_BasicSourcePosition", | 44 "Profiler_BasicSourcePosition", |
| 45 "Profiler_BasicSourcePositionOptimized", | 45 "Profiler_BasicSourcePositionOptimized", |
| 46 "Profiler_BinaryOperatorSourcePosition", | 46 "Profiler_BinaryOperatorSourcePosition", |
| 47 "Profiler_BinaryOperatorSourcePositionOptimized", | 47 "Profiler_BinaryOperatorSourcePositionOptimized", |
| 48 "Profiler_ChainedSamples", | 48 "Profiler_ChainedSamples", |
| 49 "Profiler_ClosureAllocation", | 49 "Profiler_ClosureAllocation", |
| 50 "Profiler_CodeTicks", | 50 "Profiler_CodeTicks", |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 free(test_list); | 323 free(test_list); |
| 324 pthread_mutex_destroy(&args_mutex); | 324 pthread_mutex_destroy(&args_mutex); |
| 325 | 325 |
| 326 if (test_list_index != lines_count) { | 326 if (test_list_index != lines_count) { |
| 327 fprintf(stderr, "Failed to attempt all the tests!\n"); | 327 fprintf(stderr, "Failed to attempt all the tests!\n"); |
| 328 return -1; | 328 return -1; |
| 329 } | 329 } |
| 330 | 330 |
| 331 return 0; | 331 return 0; |
| 332 } | 332 } |
| OLD | NEW |