|
|
Change Process.start to return a future that completes with a
Process object only when the process has been successfully started.
This is less error prone since you can use all the methods on a
Process object as soon as you can get your hands on it. Unfortunately,
this change leads to quite a few changes in test.dart. Some of those
changes will fix bugs as well. We used to have a problem with a
timeout that could fire just in between two steps in a chain of
commands that constitute one test run. This change should address
that issue as well.
BUG=dartbug.com/5305
Committed: https://code.google.com/p/dart/source/detail?r=13729
Total comments: 35
Total comments: 5
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+567 lines, -586 lines) |
Patch |
 |
M |
lib/compiler/implementation/lib/io.dart
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
runtime/bin/process.dart
|
View
|
1
|
3 chunks |
+11 lines, -27 lines |
0 comments
|
Download
|
 |
M |
runtime/bin/process_impl.dart
|
View
|
1
2
|
9 chunks |
+115 lines, -133 lines |
0 comments
|
Download
|
 |
M |
runtime/bin/process_win.cc
|
View
|
1
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
tests/standalone/io/dart_std_io_pipe_test.dart
|
View
|
1
|
1 chunk |
+29 lines, -29 lines |
0 comments
|
Download
|
 |
M |
tests/standalone/io/process_broken_pipe_test.dart
|
View
|
|
1 chunk |
+11 lines, -10 lines |
0 comments
|
Download
|
 |
M |
tests/standalone/io/process_check_arguments_test.dart
|
View
|
|
1 chunk |
+7 lines, -6 lines |
0 comments
|
Download
|
 |
M |
tests/standalone/io/process_exit_test.dart
|
View
|
|
1 chunk |
+8 lines, -7 lines |
0 comments
|
Download
|
 |
D |
tests/standalone/io/process_kill_unstarted_test.dart
|
View
|
|
1 chunk |
+0 lines, -15 lines |
0 comments
|
Download
|
 |
M |
tests/standalone/io/process_segfault_test.dart
|
View
|
|
1 chunk |
+8 lines, -7 lines |
0 comments
|
Download
|
 |
M |
tests/standalone/io/process_start_exception_test.dart
|
View
|
|
1 chunk |
+8 lines, -10 lines |
0 comments
|
Download
|
 |
M |
tests/standalone/io/process_stderr_test.dart
|
View
|
|
2 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
tests/standalone/io/process_stdout_test.dart
|
View
|
|
2 chunks |
+7 lines, -8 lines |
0 comments
|
Download
|
 |
M |
tests/standalone/io/process_working_directory_test.dart
|
View
|
1
|
2 chunks |
+21 lines, -22 lines |
0 comments
|
Download
|
 |
M |
tools/testing/dart/co19_test.dart
|
View
|
|
2 chunks |
+2 lines, -6 lines |
0 comments
|
Download
|
 |
M |
tools/testing/dart/test_runner.dart
|
View
|
1
|
7 chunks |
+90 lines, -64 lines |
0 comments
|
Download
|
 |
M |
tools/testing/dart/test_suite.dart
|
View
|
1
|
1 chunk |
+28 lines, -23 lines |
0 comments
|
Download
|
 |
M |
utils/pub/io.dart
|
View
|
1
|
2 chunks |
+47 lines, -45 lines |
0 comments
|
Download
|
 |
M |
utils/testrunner/layout_test_controller.dart
|
View
|
1
|
1 chunk |
+143 lines, -140 lines |
0 comments
|
Download
|
 |
M |
utils/testrunner/pipeline_utils.dart
|
View
|
1
|
1 chunk |
+21 lines, -20 lines |
0 comments
|
Download
|
Total messages: 13 (0 generated)
|