09a4f24413
BUG=https://code.google.com/p/dart/issues/detail?id=16217 R=sgjesse@google.com Review URL: https://codereview.chromium.org//200233002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33737 260f80e4-7a28-3924-810f-c04153c831b5
18 lines
461 B
Dart
18 lines
461 B
Dart
// Copyright (c) 2013, 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.
|
|
|
|
import "dart:io";
|
|
|
|
main() {
|
|
if (exitCode != 0) {
|
|
throw "Bad initial exit-code";
|
|
}
|
|
stdout.write("standard out");
|
|
stderr.write("standard error");
|
|
exitCode = 25;
|
|
if (exitCode != 25) {
|
|
throw "Exit-code not set correctly";
|
|
}
|
|
}
|