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

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

Issue 2687963003: [dart:io] flush() stdin before close()ing (Closed)
Patch Set: Created 3 years, 10 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/io_sink.dart ('k') | tests/standalone/io/process_detached_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/named_pipe_script_test.dart
diff --git a/tests/standalone/io/named_pipe_script_test.dart b/tests/standalone/io/named_pipe_script_test.dart
index ed5a659c9f50a780d5b73fe617f4406f89bb3fa8..9a9b562bf2e6f91b386de4d8249418c2e8b8d581 100644
--- a/tests/standalone/io/named_pipe_script_test.dart
+++ b/tests/standalone/io/named_pipe_script_test.dart
@@ -47,7 +47,8 @@ main() async {
process.kill();
});
process.stdin.writeln(script);
- process.stdin.close();
+ await process.stdin.flush();
+ await process.stdin.close();
int status = await process.exitCode;
if (!stdinWriteFailed) {
« no previous file with comments | « sdk/lib/io/io_sink.dart ('k') | tests/standalone/io/process_detached_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698