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

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

Issue 59773007: - Add a per-isolate pseudo random number generator to the (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 1 month 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
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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 dart_argc = argc - 2; 102 dart_argc = argc - 2;
103 dart_argv = &argv[1]; 103 dart_argv = &argv[1];
104 } 104 }
105 bool set_vm_flags_success = Flags::ProcessCommandLineFlags(dart_argc, 105 bool set_vm_flags_success = Flags::ProcessCommandLineFlags(dart_argc,
106 dart_argv); 106 dart_argv);
107 ASSERT(set_vm_flags_success); 107 ASSERT(set_vm_flags_success);
108 const char* err_msg = Dart::InitOnce(NULL, NULL, NULL, NULL, 108 const char* err_msg = Dart::InitOnce(NULL, NULL, NULL, NULL,
109 dart::bin::DartUtils::OpenFile, 109 dart::bin::DartUtils::OpenFile,
110 dart::bin::DartUtils::ReadFile, 110 dart::bin::DartUtils::ReadFile,
111 dart::bin::DartUtils::WriteFile, 111 dart::bin::DartUtils::WriteFile,
112 dart::bin::DartUtils::CloseFile); 112 dart::bin::DartUtils::CloseFile,
113 NULL);
113 ASSERT(err_msg == NULL); 114 ASSERT(err_msg == NULL);
114 // Apply the filter to all registered tests. 115 // Apply the filter to all registered tests.
115 TestCaseBase::RunAll(); 116 TestCaseBase::RunAll();
116 // Apply the filter to all registered benchmarks. 117 // Apply the filter to all registered benchmarks.
117 Benchmark::RunAll(argv[0]); 118 Benchmark::RunAll(argv[0]);
118 // Print a warning message if no tests or benchmarks were matched. 119 // Print a warning message if no tests or benchmarks were matched.
119 if (run_matches == 0) { 120 if (run_matches == 0) {
120 fprintf(stderr, "No tests matched: %s\n", run_filter); 121 fprintf(stderr, "No tests matched: %s\n", run_filter);
121 return 1; 122 return 1;
122 } 123 }
123 return 0; 124 return 0;
124 } 125 }
125 126
126 } // namespace dart 127 } // namespace dart
127 128
128 129
129 int main(int argc, const char** argv) { 130 int main(int argc, const char** argv) {
130 return dart::Main(argc, argv); 131 return dart::Main(argc, argv);
131 } 132 }
OLDNEW
« runtime/bin/dartutils.cc ('K') | « 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