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

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

Issue 1807293002: - Fix for issue 25950 (add registration of a thread exit callback) (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: self-review-comments Created 4 years, 9 months 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
« 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/dartutils.h" 7 #include "bin/dartutils.h"
8 #include "bin/file.h" 8 #include "bin/file.h"
9 #include "bin/platform.h" 9 #include "bin/platform.h"
10 10
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // exclude the last argument which is the test name. 101 // exclude the last argument which is the test name.
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(dart::bin::vm_isolate_snapshot_buffer, 108 const char* err_msg = Dart::InitOnce(dart::bin::vm_isolate_snapshot_buffer,
109 NULL, NULL, 109 NULL, NULL,
110 NULL, NULL, 110 NULL, NULL,
111 NULL,
111 dart::bin::DartUtils::OpenFile, 112 dart::bin::DartUtils::OpenFile,
112 dart::bin::DartUtils::ReadFile, 113 dart::bin::DartUtils::ReadFile,
113 dart::bin::DartUtils::WriteFile, 114 dart::bin::DartUtils::WriteFile,
114 dart::bin::DartUtils::CloseFile, 115 dart::bin::DartUtils::CloseFile,
115 NULL, 116 NULL,
116 NULL); 117 NULL);
117 ASSERT(err_msg == NULL); 118 ASSERT(err_msg == NULL);
118 // Apply the filter to all registered tests. 119 // Apply the filter to all registered tests.
119 TestCaseBase::RunAll(); 120 TestCaseBase::RunAll();
120 // Apply the filter to all registered benchmarks. 121 // Apply the filter to all registered benchmarks.
(...skipping 16 matching lines...) Expand all
137 } 138 }
138 return 0; 139 return 0;
139 } 140 }
140 141
141 } // namespace dart 142 } // namespace dart
142 143
143 144
144 int main(int argc, const char** argv) { 145 int main(int argc, const char** argv) {
145 return dart::Main(argc, argv); 146 return dart::Main(argc, argv);
146 } 147 }
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