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" | 8 #include "bin/dartutils.h" |
9 #include "bin/platform.h" | 9 #include "bin/platform.h" |
10 | 10 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 // Apply the filter to all registered tests. | 118 // Apply the filter to all registered tests. |
119 TestCaseBase::RunAll(); | 119 TestCaseBase::RunAll(); |
120 // Apply the filter to all registered benchmarks. | 120 // Apply the filter to all registered benchmarks. |
121 Benchmark::RunAll(argv[0]); | 121 Benchmark::RunAll(argv[0]); |
122 | 122 |
123 if (Flags::IsSet("shutdown")) { | 123 if (Flags::IsSet("shutdown")) { |
124 err_msg = Dart::Cleanup(); | 124 err_msg = Dart::Cleanup(); |
125 ASSERT(err_msg == NULL); | 125 ASSERT(err_msg == NULL); |
126 } | 126 } |
127 | 127 |
| 128 #if defined(TARGET_OS_WINDOWS) |
128 // TODO(zra): Remove once VM shuts down cleanly. | 129 // TODO(zra): Remove once VM shuts down cleanly. |
129 private_flag_windows_run_tls_destructors = false; | 130 private_flag_windows_run_tls_destructors = false; |
| 131 #endif |
130 | 132 |
131 // Print a warning message if no tests or benchmarks were matched. | 133 // Print a warning message if no tests or benchmarks were matched. |
132 if (run_matches == 0) { | 134 if (run_matches == 0) { |
133 fprintf(stderr, "No tests matched: %s\n", run_filter); | 135 fprintf(stderr, "No tests matched: %s\n", run_filter); |
134 return 1; | 136 return 1; |
135 } | 137 } |
136 return 0; | 138 return 0; |
137 } | 139 } |
138 | 140 |
139 } // namespace dart | 141 } // namespace dart |
140 | 142 |
141 | 143 |
142 int main(int argc, const char** argv) { | 144 int main(int argc, const char** argv) { |
143 return dart::Main(argc, argv); | 145 return dart::Main(argc, argv); |
144 } | 146 } |
OLD | NEW |