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

Unified Diff: tests/standalone/io/process_set_exit_code_script.dart

Issue 11665004: Add exitCode setter to set the exit code returned by the Dart VM (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Actually upload the correct patch Created 8 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/io/process_set_exit_code_script.dart
diff --git a/tests/standalone/io/print_env.dart b/tests/standalone/io/process_set_exit_code_script.dart
similarity index 71%
copy from tests/standalone/io/print_env.dart
copy to tests/standalone/io/process_set_exit_code_script.dart
index 997c3a802b686935d086c0ff9b1b265232e6e496..6a784298b6fc5d9d0e05f0b09bb4498cc36f5743 100644
--- a/tests/standalone/io/print_env.dart
+++ b/tests/standalone/io/process_set_exit_code_script.dart
@@ -5,5 +5,7 @@
import "dart:io";
main() {
- print(Platform.environment[new Options().arguments[0]]);
-}
+ stdout.writeString("standard out");
+ stderr.writeString("standard error");
+ exitCode = 25;
+}

Powered by Google App Engine
This is Rietveld 408576698