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

Unified Diff: tests/standalone/full_coverage_test.dart

Issue 1233243006: Print child process' stderr when it fails in full_coverage_test. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Default encoding, newlines. Created 5 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/full_coverage_test.dart
diff --git a/tests/standalone/full_coverage_test.dart b/tests/standalone/full_coverage_test.dart
index 05a264521d1f3e63aa9064b6a1a8f081269a00bd..2ee19792c30154304b61e0040df56788bb3ed14b 100644
--- a/tests/standalone/full_coverage_test.dart
+++ b/tests/standalone/full_coverage_test.dart
@@ -93,7 +93,11 @@ generateCoverage(String workingDirectory) {
var dartArgs = new List.from(dartBaseArgs)
..addAll(['--coverage-dir=${progPath}', '${script}']);
var result = Process.runSync(Platform.executable, dartArgs);
- expect(result.exitCode, 0);
+ if (result.exitCode != 0) {
+ print("Coverage generator returned exitCode: ${result.exitCode}.");
+ print("stderr:\n${result.stderr}\n");
+ expect(result.exitCode, 0);
+ }
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698