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

Side by Side Diff: tests/dart/src/ProcessSegfaultTest.dart

Issue 8249007: Implement the full process interface for Windows (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 // Process test program to test process communication. 5 // Process test program to test process communication.
6 6
7 class ProcessSegfaultTest { 7 class ProcessSegfaultTest {
8 8
9 static void testExit() { 9 static void testExit() {
10 Process process = new Process("out/Debug_ia32/process_test", 10 Process process = new Process("Debug_ia32\\process_test.exe",
11 const ["0", "0", "1", "1"]); 11 const ["0", "0", "1", "1"]);
12 12
13 void exitHandler(int exitCode) { 13 void exitHandler(int exitCode) {
14 process.close(); 14 process.close();
15 } 15 }
16 16
17 process.setExitHandler(exitHandler); 17 process.setExitHandler(exitHandler);
18 process.start(); 18 process.start();
19 } 19 }
20 20
21 static void testMain() { 21 static void testMain() {
22 testExit(); 22 testExit();
23 } 23 }
24 } 24 }
25 25
26 main() { 26 main() {
27 ProcessSegfaultTest.testMain(); 27 ProcessSegfaultTest.testMain();
28 } 28 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698