Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Side by Side Diff: runtime/bin/run_vm_tests.cc

Issue 11413101: Added support for isolate unhandled exceptions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Incorporated code review feedback Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/include/dart_api.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 8
9 #include "vm/benchmark_test.h" 9 #include "vm/benchmark_test.h"
10 #include "vm/dart.h" 10 #include "vm/dart.h"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 } else { 131 } else {
132 // Remove the first value (executable) from the arguments and 132 // Remove the first value (executable) from the arguments and
133 // exclude the last argument which is the test name. 133 // exclude the last argument which is the test name.
134 dart_argc = argc - 2; 134 dart_argc = argc - 2;
135 dart_argv = &argv[1]; 135 dart_argv = &argv[1];
136 } 136 }
137 } 137 }
138 bool set_vm_flags_success = Flags::ProcessCommandLineFlags(dart_argc, 138 bool set_vm_flags_success = Flags::ProcessCommandLineFlags(dart_argc,
139 dart_argv); 139 dart_argv);
140 ASSERT(set_vm_flags_success); 140 ASSERT(set_vm_flags_success);
141 const char* err_msg = Dart::InitOnce(NULL, NULL, NULL); 141 const char* err_msg = Dart::InitOnce(NULL, NULL, NULL, NULL);
142 ASSERT(err_msg == NULL); 142 ASSERT(err_msg == NULL);
143 // Apply the filter to all registered tests. 143 // Apply the filter to all registered tests.
144 TestCaseBase::RunAll(); 144 TestCaseBase::RunAll();
145 // Apply the filter to all registered benchmarks. 145 // Apply the filter to all registered benchmarks.
146 Benchmark::RunAll(argv[0]); 146 Benchmark::RunAll(argv[0]);
147 // Print a warning message if no tests or benchmarks were matched. 147 // Print a warning message if no tests or benchmarks were matched.
148 if (run_matches == 0) { 148 if (run_matches == 0) {
149 fprintf(stderr, "No tests matched: %s\n", run_filter); 149 fprintf(stderr, "No tests matched: %s\n", run_filter);
150 return 1; 150 return 1;
151 } 151 }
152 // Dump symbol information for the profiler. 152 // Dump symbol information for the profiler.
153 DumpPprofSymbolInfo(pprof_filename); 153 DumpPprofSymbolInfo(pprof_filename);
154 return 0; 154 return 0;
155 } 155 }
156 156
157 } // namespace dart 157 } // namespace dart
158 158
159 159
160 int main(int argc, const char** argv) { 160 int main(int argc, const char** argv) {
161 return dart::Main(argc, argv); 161 return dart::Main(argc, argv);
162 } 162 }
OLDNEW
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/include/dart_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698