about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2013-08-26 21:01:17 +0100
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2013-08-26 21:01:17 +0100
commitb0a0441902f848da4284e107c29e43e222252959 (patch)
tree649fdd470bb380e4745593a6cd8959b9254d3234 /Test
parentf61804c4b49318d77c89729e959577a653cadbff (diff)
downloadzsh-b0a0441902f848da4284e107c29e43e222252959.tar.gz
zsh-b0a0441902f848da4284e107c29e43e222252959.tar.xz
zsh-b0a0441902f848da4284e107c29e43e222252959.zip
31672: Add test that was failing and fix zpty set-up race
Diffstat (limited to 'Test')
-rw-r--r--Test/V08zpty.ztst10
1 files changed, 9 insertions, 1 deletions
diff --git a/Test/V08zpty.ztst b/Test/V08zpty.ztst
index d9d24c5e8..5b08fc281 100644
--- a/Test/V08zpty.ztst
+++ b/Test/V08zpty.ztst
@@ -12,9 +12,17 @@
 %test
 
   zpty cat cat
+  zpty -w cat a line of text
+  var=
+  zpty -r cat var && print -r -- ${var%%$'\r\n'}
+  zpty -d cat
+0:zpty with a process that does not set up the terminal: internal write
+>a line of text
+
+  zpty cat cat
   print a line of text | zpty -w cat
   var=
   zpty -r cat var && print -r -- ${var%%$'\r\n'}
   zpty -d cat
-0:zpty with a process that does not set up the terminal
+0:zpty with a process that does not set up the terminal: write via stdin
 >a line of text