mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-01 18:30:55 +01:00
31665: zpty should attach terminal on slave.
Also add test.
This commit is contained in:
parent
935758ab7f
commit
f75904a380
4 changed files with 29 additions and 0 deletions
|
|
@ -40,6 +40,7 @@ V04features.ztst
|
|||
V05styles.ztst
|
||||
V06parameter.ztst
|
||||
V07pcre.ztst
|
||||
V08zpty.ztst
|
||||
Y01completion.ztst
|
||||
Y02compmatch.ztst
|
||||
Y03arguments.ztst
|
||||
|
|
|
|||
20
Test/V08zpty.ztst
Normal file
20
Test/V08zpty.ztst
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# zpty is required by tests of interactive modes of the shell itself.
|
||||
# This tests some extra things.
|
||||
|
||||
%prep
|
||||
|
||||
if ! zmodload zsh/zpty 2>/dev/null
|
||||
then
|
||||
ZTST_unimplemented="the zsh/zpty module is not available"
|
||||
return 0
|
||||
fi
|
||||
|
||||
%test
|
||||
|
||||
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
|
||||
>a line of text
|
||||
Loading…
Add table
Add a link
Reference in a new issue