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

Unified Diff: tests/standalone/io/code_collection_test.dart

Issue 1334353002: - Add getters for the current packageRoot or packageMap. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update tests and move to ToT. Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: tests/standalone/io/code_collection_test.dart
diff --git a/tests/standalone/io/code_collection_test.dart b/tests/standalone/io/code_collection_test.dart
index 696be6e024d2e93222e527eb7eddccb9d74280b5..bf28613dd38f4e58b8cdd37d775ddebde51ed91a 100644
--- a/tests/standalone/io/code_collection_test.dart
+++ b/tests/standalone/io/code_collection_test.dart
@@ -42,18 +42,19 @@ doTest() {
}
-main(List<String> arguments) {
+main(List<String> arguments) async {
if (arguments.contains("--run")) {
doTest();
} else {
// Run the test and capture stdout.
+ var packageRoot = await Platform.packageRoot;
var pr = Process.runSync(Platform.executable,
["--collect-code",
"--code-collection-interval-in-us=0",
"--old_gen_growth_rate=10",
"--log-code-drop",
"--optimization-counter-threshold=-1",
- "--package-root=${Platform.packageRoot}",
+ "--package-root=$packageRoot",
Platform.script.toFilePath(),
"--run"]);

Powered by Google App Engine
This is Rietveld 408576698