diff options
Diffstat (limited to 'Test/ztst.zsh')
-rwxr-xr-x | Test/ztst.zsh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Test/ztst.zsh b/Test/ztst.zsh index 181148c2b..b3f6de16b 100755 --- a/Test/ztst.zsh +++ b/Test/ztst.zsh @@ -22,6 +22,10 @@ # still not be good enough. Maybe we should trick it somehow. emulate -R zsh +# Set the module load path to correspond to this build of zsh. +# This Modules directory should have been created by "make check". +[[ -d Modules/zsh ]] && module_path=( $PWD/Modules ) + # We need to be able to save and restore the options used in the test. # We use the $options variable of the parameter module for this. zmodload -i zsh/parameter @@ -47,6 +51,9 @@ ZTST_testname=$1 ZTST_srcdir=${0%/*} [[ $ZTST_srcdir = /* ]] || ZTST_srcdir="$ZTST_testdir/$ZTST_srcdir" +# Set the function autoload paths to correspond to this build of zsh. +fpath=( ${ZTST_srcdir:h}/(Completion|Functions)/*~*/CVS(/) ) + : ${TMPPREFIX:=/tmp/zsh} # Temporary files for redirection inside tests. ZTST_in=${TMPPREFIX}.ztst.in.$$ |