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

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

Issue 200233002: Add exitCode getter counterpart to the existing setter in dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/io/process.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/process_set_exit_code_script.dart
diff --git a/tests/standalone/io/process_set_exit_code_script.dart b/tests/standalone/io/process_set_exit_code_script.dart
index 9a34f052a14619eff51b43f7b0e620f0ee8dbf41..38a8075367ef78c083c07e02fba5224cd89e17f3 100644
--- a/tests/standalone/io/process_set_exit_code_script.dart
+++ b/tests/standalone/io/process_set_exit_code_script.dart
@@ -5,7 +5,13 @@
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";
+ }
}
« no previous file with comments | « sdk/lib/io/process.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698