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

Unified Diff: tests/standalone/src/ProcessSegfaultTest.dart

Issue 9024008: Change the process API to be completely asynchronous. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Presubmit fixes Created 9 years 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
Index: tests/standalone/src/ProcessSegfaultTest.dart
diff --git a/tests/standalone/src/ProcessSegfaultTest.dart b/tests/standalone/src/ProcessSegfaultTest.dart
index 9a840a7aacbfe9abd9729eb9530649f6d7b320be..3a4a190f1fa94a141ee8a62c9f98715a167830ed 100644
--- a/tests/standalone/src/ProcessSegfaultTest.dart
+++ b/tests/standalone/src/ProcessSegfaultTest.dart
@@ -8,24 +8,16 @@
#source("ProcessTestUtil.dart");
class ProcessSegfaultTest {
-
static void testExit() {
- Process process = new Process(getProcessTestFileName(),
- const ["0", "0", "1", "1"]);
+ Process process = new Process.start(getProcessTestFileName(),
+ const ["0", "0", "1", "1"]);
- void exitHandler(int exitCode) {
+ process.exitHandler = (int exitCode) {
process.close();
- }
-
- process.exitHandler = exitHandler;
- process.start();
- }
-
- static void testMain() {
- testExit();
+ };
}
}
main() {
- ProcessSegfaultTest.testMain();
+ ProcessSegfaultTest.testExit();
}

Powered by Google App Engine
This is Rietveld 408576698