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

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

Issue 26654006: Emits additional output when test_runner_test fails. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 2 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/io/test_runner_test.dart
===================================================================
--- tests/standalone/io/test_runner_test.dart (revision 28411)
+++ tests/standalone/io/test_runner_test.dart (working copy)
@@ -24,10 +24,22 @@
numCompletedTests++;
if (testCase.displayName == "fail-unexpected") {
if (!testCase.unexpectedOutput) {
- throw "Expected fail-unexpected";
+ var stdout =
+ new String.fromCharCodes(testCase.lastCommandOutput.stdout);
+ var stderr =
+ new String.fromCharCodes(testCase.lastCommandOutput.stderr);
+ print("stdout = [$stdout]");
+ print("stderr = [$stderr]");
+ throw "Expected fail-unexpected: ${testCase.result}";
}
} else {
if (testCase.unexpectedOutput) {
+ var stdout =
+ new String.fromCharCodes(testCase.lastCommandOutput.stdout);
+ var stderr =
+ new String.fromCharCodes(testCase.lastCommandOutput.stderr);
+ print("stdout = [$stdout]");
+ print("stderr = [$stderr]");
throw "Unexpected fail";
}
}
« 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