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 <stdio.h> | 5 #include <stdio.h> |
6 | 6 |
7 #include "bin/file.h" | 7 #include "bin/file.h" |
| 8 #include "bin/dartutils.h" |
| 9 #include "bin/platform.h" |
8 | 10 |
9 #include "vm/benchmark_test.h" | 11 #include "vm/benchmark_test.h" |
10 #include "vm/dart.h" | 12 #include "vm/dart.h" |
11 #include "bin/dartutils.h" | |
12 #include "vm/unit_test.h" | 13 #include "vm/unit_test.h" |
13 | 14 |
14 | 15 |
15 // TODO(iposva, asiva): This is a placeholder for the real unittest framework. | 16 // TODO(iposva, asiva): This is a placeholder for the real unittest framework. |
16 namespace dart { | 17 namespace dart { |
17 | 18 |
18 // vm_isolate_snapshot_buffer points to a snapshot for the vm isolate if we | 19 // vm_isolate_snapshot_buffer points to a snapshot for the vm isolate if we |
19 // link in a snapshot otherwise it is initialized to NULL. | 20 // link in a snapshot otherwise it is initialized to NULL. |
20 extern const uint8_t* bin::vm_isolate_snapshot_buffer; | 21 extern const uint8_t* bin::vm_isolate_snapshot_buffer; |
21 | 22 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 fprintf(stderr, "No tests matched: %s\n", run_filter); | 127 fprintf(stderr, "No tests matched: %s\n", run_filter); |
127 return 1; | 128 return 1; |
128 } | 129 } |
129 return 0; | 130 return 0; |
130 } | 131 } |
131 | 132 |
132 } // namespace dart | 133 } // namespace dart |
133 | 134 |
134 | 135 |
135 int main(int argc, const char** argv) { | 136 int main(int argc, const char** argv) { |
136 return dart::Main(argc, argv); | 137 dart::bin::Platform::Exit(dart::Main(argc, argv)); |
137 } | 138 } |
OLD | NEW |