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

Re: zsh 4.6.2-test-2



(I guess this should go to workers)

On 30 Dec 2018, at 12:20, Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx> wrote:
>I've certainly no objection to working round termcap, so I've committed
>this and the tests, but I probably wouldn't be sensitive to problems
>here, so I'm relying on others to let me know.

The new test fails on my machine (macOS, standard build settings AFAIK):

  --- /tmp/zsh.ztst.83116/ztst.out	2018-12-31 07:14:52.000000000 -0600
  +++ /tmp/zsh.ztst.83116/ztst.tout	2018-12-31 07:14:52.000000000 -0600
  @@ -1 +1,2 @@
  -0m27m24mtr7mu27me word2 word3
  +zsh: failed to load module `zsh/zle': dlopen(/usr/local/lib/zsh/5.6.2-test-2/zsh/zle.so, 9): image not found
  +builtin.c:266: Missing builtin detected too latezsh: failed to load module `zsh/zle'...

I assume it's because the zsh instance it's bringing up isn't managed by the
test harness, so it doesn't know how to find stuff in the repo.

This fixes it for me, but i'm not sure if it's the right thing...?

dana


diff --git a/Test/X04zlehighlight.ztst b/Test/X04zlehighlight.ztst
index 23ad14bd6..9f00b4697 100644
--- a/Test/X04zlehighlight.ztst
+++ b/Test/X04zlehighlight.ztst
@@ -12,6 +12,7 @@
       export PS1= PS2=
       zpty -d
       zpty zsh "${(q)ZTST_testdir}/../Src/zsh -fiV +Z"
+      zpty -w zsh "module_path=( ${(@q-)module_path} \$module_path )"
       zpty -w zsh 'zle_highlight=( fg_start_code:"CDE|3" fg_end_code:"|" bg_start_code:"BCDE|4" bg_end_code:"|" )'
     }
     zpty_input() {



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