Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH] K01nameref.ztst: set $module_path in child zsh



Test K01nameref fails if not yet installed:

% mkdir -p /a/new/dir
% ./configure --prefix=/a/new/dir
% make
% TESTNUM=K01 make check

Then the test fails in the chunk
'Only string parameters are promoted to named directories'

error output:
zsh: failed to load module `zsh/parameter': /a/new/dir/lib/zsh/5.9.999.3-test/zsh/parameter.so: cannot open shared object file: No such file or directory

This is because $module_path is not passed to the zsh started
at K01nameref.ztst:1578:
  PS1= $ZTST_testdir/../Src/zsh -fis <<<'



diff --git a/Test/K01nameref.ztst b/Test/K01nameref.ztst
index c0afaa827..952bbd30c 100644
--- a/Test/K01nameref.ztst
+++ b/Test/K01nameref.ztst
@@ -1576,6 +1576,7 @@ F:previously this could create an infinite recursion and crash
 # Testing named directories requires to run in interactive mode
 
  PS1= $ZTST_testdir/../Src/zsh -fis <<<'
+   [[ -d Modules/zsh ]] && module_path=( $PWD/Modules )
    typeset v1=/1 v2
    typeset -n r1=v1 r2
    { echo "~v1:" ~v1 } 2>&1







Messages sorted by: Reverse Date, Date, Thread, Author