1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-02 00:41:44 +02:00

13442: Use +Z to suppress loading of ZLE modules when testing.

This commit is contained in:
Bart Schaefer 2001-02-08 03:29:58 +00:00
parent 7194a50300
commit db3d3e2b27
3 changed files with 9 additions and 2 deletions

@ -1,3 +1,9 @@
2001-02-07 Bart Schaefer <schaefer@zsh.org>
* 13442: Test/Makefile.in, Test/comptest: Run zsh with +Z to
prevent ZLE modules from being loaded before $module_path is
changed to point at the test installation.
2001-02-02 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
* unposted: Src/mkmakemod.sh: patterns in 13412 were wrong.

@ -46,7 +46,7 @@ check test:
$(MAKE) MODDIR=`pwd`/$(subdir)/Modules install.modules > /dev/null; \
fi
-for f in $(sdir)/$(TESTNUM)*.ztst; do \
$(dir_top)/Src/zsh -f $(sdir)/ztst.zsh $$f; \
$(dir_top)/Src/zsh +Z -f $(sdir)/ztst.zsh $$f; \
done
rm -rf Modules .zcompdump

@ -16,7 +16,7 @@ comptestinit () {
(( OPTIND > 1 )) && shift $(( OPTIND - 1 ))
export PS1="<PROMPT>"
zpty -b zsh "$comptest_zsh" -f
zpty -b zsh "$comptest_zsh -f +Z"
zpty -r zsh log1 "*<PROMPT>*" || {
print "first prompt hasn't appeared."
@ -29,6 +29,7 @@ comptestinit () {
"fpath=( $fpath )" \
'LISTMAX=10000000
stty columns 80 rows 24
setopt zle
bindkey -e
autoload -U compinit
compinit -u