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

Side by Side Diff: runtime/bin/process_patch.dart

Issue 233313005: Do not try to move lines around after test! (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 patch class _WindowsCodePageDecoder { 5 patch class _WindowsCodePageDecoder {
6 /* patch */ static String _decodeBytes(List<int> bytes) 6 /* patch */ static String _decodeBytes(List<int> bytes)
7 native "SystemEncodingToString"; 7 native "SystemEncodingToString";
8 } 8 }
9 9
10 10
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 if (!success) { 329 if (!success) {
330 completer.completeError( 330 completer.completeError(
331 new ProcessException(_path, 331 new ProcessException(_path,
332 _arguments, 332 _arguments,
333 status._errorMessage, 333 status._errorMessage,
334 status._errorCode)); 334 status._errorCode));
335 return; 335 return;
336 } 336 }
337 // Reset values which are no longer needed. 337 // Reset values which are no longer needed.
338 _path = null; 338 _path = null;
339 _aguments = null; 339 _arguments = null;
340 _workingDirectory = null; 340 _workingDirectory = null;
341 _environment = null; 341 _environment = null;
342 342
343 _started = true; 343 _started = true;
344 344
345 // Setup an exit handler to handle internal cleanup and possible 345 // Setup an exit handler to handle internal cleanup and possible
346 // callback when a process terminates. 346 // callback when a process terminates.
347 int exitDataRead = 0; 347 int exitDataRead = 0;
348 final int EXIT_DATA_SIZE = 8; 348 final int EXIT_DATA_SIZE = 8;
349 List<int> exitDataBuffer = new List<int>(EXIT_DATA_SIZE); 349 List<int> exitDataBuffer = new List<int>(EXIT_DATA_SIZE);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 _exitHandler._nativeSocket, 388 _exitHandler._nativeSocket,
389 status); 389 status);
390 if (!success) { 390 if (!success) {
391 throw new ProcessException(_path, 391 throw new ProcessException(_path,
392 _arguments, 392 _arguments,
393 status._errorMessage, 393 status._errorMessage,
394 status._errorCode); 394 status._errorCode);
395 } 395 }
396 // Reset values which are no longer needed. 396 // Reset values which are no longer needed.
397 _path = null; 397 _path = null;
398 _aguments = null; 398 _arguments = null;
399 _workingDirectory = null; 399 _workingDirectory = null;
400 _environment = null; 400 _environment = null;
401 401
402 var result = _wait( 402 var result = _wait(
403 _stdin._sink._nativeSocket, 403 _stdin._sink._nativeSocket,
404 _stdout._stream._nativeSocket, 404 _stdout._stream._nativeSocket,
405 _stderr._stream._nativeSocket, 405 _stderr._stream._nativeSocket,
406 _exitHandler._nativeSocket); 406 _exitHandler._nativeSocket);
407 407
408 getOutput(output, encoding) { 408 getOutput(output, encoding) {
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 const _ProcessResult(int this.pid, 550 const _ProcessResult(int this.pid,
551 int this.exitCode, 551 int this.exitCode,
552 this.stdout, 552 this.stdout,
553 this.stderr); 553 this.stderr);
554 554
555 final int pid; 555 final int pid;
556 final int exitCode; 556 final int exitCode;
557 final stdout; 557 final stdout;
558 final stderr; 558 final stderr;
559 } 559 }
OLDNEW
« 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