4efd1f98fa
- dart:builtin is implicitly imported. - dart:io has to be explicitly imported. I will update the macos and windows stable test binaries when we are happy with the solution. R=iposva@google.com BUG= TEST= Review URL: https://chromiumcodereview.appspot.com//9254026 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3537 260f80e4-7a28-3924-810f-c04153c831b5
26 lines
702 B
Dart
26 lines
702 B
Dart
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
//
|
|
// Process test program to test process communication.
|
|
|
|
#library("ProcessExitTest");
|
|
#import("dart:io");
|
|
#source("ProcessTestUtil.dart");
|
|
|
|
class ProcessExitTest {
|
|
static void testExit() {
|
|
Process process = new Process.start(getProcessTestFileName(),
|
|
const ["0", "0", "99", "0"]);
|
|
|
|
process.exitHandler = (int exitCode) {
|
|
Expect.equals(exitCode, 99);
|
|
process.close();
|
|
};
|
|
}
|
|
}
|
|
|
|
main() {
|
|
ProcessExitTest.testExit();
|
|
}
|