summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_channel_pipe.py
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-02-10 22:23:26 +0100
committerBram Moolenaar <Bram@vim.org>2019-02-10 22:23:26 +0100
commit6524068ff3252f1373807f1ebfde21408cef624e (patch)
tree016c761632389af45db753da47049f2d0ce0a688 /src/testdir/test_channel_pipe.py
parent31b816042fca879b11965ddd75287732563ba698 (diff)
patch 8.1.0889: MS-Windows: a channel write may hangv8.1.0889
Problem: MS-Windows: a channel write may hang. Solution: Check for WriteFile() not writing anything. (Yasuhiro Matsumoto, closes #3920)
Diffstat (limited to 'src/testdir/test_channel_pipe.py')
-rw-r--r--src/testdir/test_channel_pipe.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testdir/test_channel_pipe.py b/src/testdir/test_channel_pipe.py
index 810a8e3032..5caffcbf9e 100644
--- a/src/testdir/test_channel_pipe.py
+++ b/src/testdir/test_channel_pipe.py
@@ -18,6 +18,9 @@ if __name__ == "__main__":
print(sys.argv[1], end='')
sys.stdout.flush()
sys.exit(0)
+ elif sys.argv[1].startswith("busy"):
+ time.sleep(100)
+ sys.exit(0)
else:
print(sys.argv[1])
sys.stdout.flush()