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

Unified Diff: tools/testing/dart/test_runner.dart

Issue 10207012: Revert changelists 6885 and 6881 (partial). Return to state where Process.onError is not handled. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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: tools/testing/dart/test_runner.dart
diff --git a/tools/testing/dart/test_runner.dart b/tools/testing/dart/test_runner.dart
index 5a48c0d1eac2f89214ecb83a57020d4eeffbaa40..e318ad1a58958ba92ea2f7f895427ba5f7ec690d 100644
--- a/tools/testing/dart/test_runner.dart
+++ b/tools/testing/dart/test_runner.dart
@@ -506,8 +506,6 @@ class RunningProcess {
/** Which command of [testCase.commands] is currently being executed. */
int currentStep;
- static final int kErrorStartingProcess = -171717; // Chosen arbitrarily.
-
RunningProcess(TestCase this.testCase,
[this.allowRetries = false, this.processQueue]);
@@ -551,11 +549,7 @@ class RunningProcess {
* the actual test and its output is analyzed in [testComplete].
*/
void stepExitHandler(int exitCode) {
- try {
- process.close();
- } catch (ProcessException e) {
- // If the process is already closed, continue.
- }
+ process.close();
int totalSteps = testCase.commands.length;
String suffix =' (step $currentStep of $totalSteps)';
if (currentStep == totalSteps) { // done with test command
@@ -606,7 +600,6 @@ class RunningProcess {
}
process = new Process.start(command.executable, command.arguments);
process.onExit = exitHandler;
- process.onError = (error) { exitHandler(kErrorStartingProcess); };
startTime = new Date.now();
InputStream stdoutStream = process.stdout;
InputStream stderrStream = process.stderr;
« 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