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

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

Issue 13851008: Validate exit-code in regress_7191. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 | « tests/standalone/io/regress_7191_script.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/regress_7191_test.dart
diff --git a/tests/standalone/io/regress_7191_test.dart b/tests/standalone/io/regress_7191_test.dart
index 6ce1e36b8a598a689f6c9f7c96a7ce337ce123a5..0262f4d1942448e4d95166283ec050c1c5774642 100644
--- a/tests/standalone/io/regress_7191_test.dart
+++ b/tests/standalone/io/regress_7191_test.dart
@@ -23,6 +23,9 @@ main() {
process.stdout.listen((_) { },
onDone: () { process.stdin.writeBytes([0]); });
process.stderr.listen((_) { });
- process.exitCode.then((exitCode) => port.close());
+ process.exitCode.then((exitCode) {
+ port.close();
+ if (exitCode != 0) throw "Bad exit code";
+ });
});
}
« no previous file with comments | « tests/standalone/io/regress_7191_script.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698