zsh-workers
 help / color / mirror / code / Atom feed
* V01 Test Failure
@ 2023-03-06 21:43 Vin Shelton
  2023-03-06 21:55 ` Bart Schaefer
  0 siblings, 1 reply; 6+ messages in thread
From: Vin Shelton @ 2023-03-06 21:43 UTC (permalink / raw)
  To: Zsh Hackers' List

[-- Attachment #1: Type: text/plain, Size: 390 bytes --]

Where are global variables supposed to be declared?

Test ../../../src/zsh-2023-03-06/Test/V01zmodload.ztst failed: bad status
1, expected 0 from:
 for m in $mods
 do
   zmodload $m || return $?
 done
Error output:
(eval):3: failed to load module `zsh/ksh93':
/opt/build/zsh-2023-03-06/Test/Modules/zsh/ksh93.so: undefined symbol:
varedarg
Was testing: Test loading of all compiled modules

[-- Attachment #2: Type: text/html, Size: 586 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: V01 Test Failure
  2023-03-06 21:43 V01 Test Failure Vin Shelton
@ 2023-03-06 21:55 ` Bart Schaefer
  2023-03-06 22:16   ` Bart Schaefer
  0 siblings, 1 reply; 6+ messages in thread
From: Bart Schaefer @ 2023-03-06 21:55 UTC (permalink / raw)
  To: Vin Shelton; +Cc: Zsh Hackers' List

On Mon, Mar 6, 2023 at 1:45 PM Vin Shelton <acs@alumni.princeton.edu> wrote:
>
> Where are global variables supposed to be declared?

In this case:
Src/Zle/zle_main.epro:extern mod_import_variable char*varedarg;

However, I tried this with ksh93.c in order to avoid including other
modules epro files:

    if (zleactive) {
        extern mod_import_variable char *curkeymapname; /* XXX */
        extern mod_import_variable char *varedarg;      /* XXX */

Works for me on Linux, but it's possible those variables declarations
need to be moved to file scope instead of function scope, or that the
ksh93 module needs to be made dependent on zsh/zle, depending on the
compiler/linker.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: V01 Test Failure
  2023-03-06 21:55 ` Bart Schaefer
@ 2023-03-06 22:16   ` Bart Schaefer
  0 siblings, 0 replies; 6+ messages in thread
From: Bart Schaefer @ 2023-03-06 22:16 UTC (permalink / raw)
  To: Vin Shelton; +Cc: Zsh Hackers' List

On Mon, Mar 6, 2023 at 1:55 PM Bart Schaefer <schaefer@brasslantern.com> wrote:
>
> Works for me on Linux, but it's possible those variables declarations
> need to be moved to file scope instead of function scope, or that the
> ksh93 module needs to be made dependent on zsh/zle, depending on the
> compiler/linker.

This seems to do it:

diff --git a/Src/Modules/ksh93.mdd b/Src/Modules/ksh93.mdd
index 2759884a0..85e35e9cb 100644
--- a/Src/Modules/ksh93.mdd
+++ b/Src/Modules/ksh93.mdd
@@ -5,4 +5,6 @@ load=yes
 autofeatures="b:nameref"
 autofeatures_emu="b:nameref p:.sh.command p:.sh.edcol p:.sh.edtext
p:.sh.file p:.sh.lineno p:.sh.match p:.sh.subshell p:.sh.version"

+moddeps="zsh/zle"
+
 objects="ksh93.o"


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: V01 test failure
  2018-06-18 14:41   ` Peter Stephenson
@ 2018-06-18 15:58     ` dana
  0 siblings, 0 replies; 6+ messages in thread
From: dana @ 2018-06-18 15:58 UTC (permalink / raw)
  To: Peter Stephenson; +Cc: Zsh Hackers' List

On 18 Jun 2018, at 09:41, Peter Stephenson <p.stephenson@samsung.com> wrote:
>I think it was just the one test failing due to parameter module
>changes.  I've pushed a fix for that.

Oops. Sorry, i should have checked that.

dana


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: V01 test failure
  2018-06-18 14:07 ` V01 test failure Vin Shelton
@ 2018-06-18 14:41   ` Peter Stephenson
  2018-06-18 15:58     ` dana
  0 siblings, 1 reply; 6+ messages in thread
From: Peter Stephenson @ 2018-06-18 14:41 UTC (permalink / raw)
  To: Zsh Hackers' List

On Mon, 18 Jun 2018 10:07:18 -0400
Vin Shelton <acs@alumni.princeton.edu> wrote:
> Based on the latest sources,
> 
>    ZTST_verbose=3 TESTNUM=V01 make check
> 
> produces the attached output.

I think it was just the one test failing due to parameter module
changes.  I've pushed a fix for that.

pws


^ permalink raw reply	[flat|nested] 6+ messages in thread

* V01 test failure
@ 2018-06-18 14:07 ` Vin Shelton
  2018-06-18 14:41   ` Peter Stephenson
  0 siblings, 1 reply; 6+ messages in thread
From: Vin Shelton @ 2018-06-18 14:07 UTC (permalink / raw)
  To: Zsh Hackers' List


[-- Attachment #1.1: Type: text/plain, Size: 117 bytes --]

Based on the latest sources,

   ZTST_verbose=3 TESTNUM=V01 make check

produces the attached output.

Cheers!
  Vin

[-- Attachment #1.2: Type: text/html, Size: 847 bytes --]

[-- Attachment #2: check.out --]
[-- Type: application/octet-stream, Size: 20365 bytes --]

cd Test ; make check
make[1]: Entering directory '/opt/build/zsh-2018-06-18/Test'
if test -n "gcc"; then \
  cd .. && DESTDIR= \
  make MODDIR=`pwd`/Test/Modules install.modules > /dev/null; \
fi
if ZTST_testlist="`for f in ../../../src/zsh-2018-06-18/Test/V01*.ztst; \
           do echo $f; done`" \
 ZTST_srcdir="../../../src/zsh-2018-06-18/Test" \
 ZTST_exe=../Src/zsh \
 ../Src/zsh +Z -f ../../../src/zsh-2018-06-18/Test/runtests.zsh; then \
 stat=0; \
else \
 stat=1; \
fi; \
sleep 1; \
rm -rf Modules .zcompdump; \
exit $stat
../../../src/zsh-2018-06-18/Test/V01zmodload.ztst: starting.
ZTST_getsect: read section name: prep
ZTST_getchunk: read code chunk:
 mods=()
 deps="$(zmodload -Ld)"
 while read name modfile link auto load funcs
 do
   [[ $name == \#* ]] && continue
   eval "$name $modfile $link $auto $load"
   [[ $link == no ]] && continue
   mods=($mods $name)
   moddeps=
   modfile=$ZTST_srcdir/../$modfile
   eval ${${${(f)"$(<$modfile)"}[(r)moddeps=*]}:-:}
   [[ -n $moddeps ]] && zmodload -d $name $=moddeps
 done < $ZTST_testdir/../config.modules
ZTST_execchunk: status 0
ZTST_getchunk: read code chunk:
 zmodunload() {
   local m n=$#
   (( n == 0 )) && return 0
   for m
   do
     if [[ -z ${(M)${(f)"$(zmodload -d)"}:#*:* $m( *|)} ]]
     then
       zmodload -u $m && zmodload -ud $m || return 1
       shift
     else
       set $@[2,-1] $m
     fi
   done
   if (( $# < n ))
   then
     zmodunload $*
   else
     zmodload -u $*
   fi
 }
ZTST_execchunk: status 0
ZTST_getchunk: read code chunk:
 mkdir zmodload.tmp
 cd zmodload.tmp
ZTST_execchunk: status 0
ZTST_getchunk: read code chunk:

ZTST_getsect: read section name: test
ZTST_test: looking for new test
ZTST_test: examining line:

ZTST_test: examining line:

ZTST_test: examining line:
 zmodload -L
ZTST_getchunk: read code chunk:
 zmodload -L
ZTST_test: examining line:
>zmodload zsh/main
ZTST_getredir: read redir for '>':
zmodload zsh/main
zmodload zsh/parameter
ZTST_test: examining line:

Running test: List the loaded modules
ZTST_test: expecting status: 0
Input: /tmp/zsh.ztst.18085/ztst.in, output: /tmp/zsh.ztst.18085/ztst.out, error: /tmp/zsh.ztst.18085/ztst.terr
ZTST_execchunk: status 0
ZTST_test: test produced standard output:
zmodload zsh/main
zmodload zsh/parameter
ZTST_test: and standard error:

Test successful.
ZTST_test: looking for new test
ZTST_test: examining line:

ZTST_test: examining line:
 zmodload zsh/main
ZTST_getchunk: read code chunk:
 zmodload zsh/main
ZTST_test: examining line:

Running test: Test reloading an already-loaded module
ZTST_test: expecting status: 0
Input: /tmp/zsh.ztst.18085/ztst.in, output: /tmp/zsh.ztst.18085/ztst.out, error: /tmp/zsh.ztst.18085/ztst.terr
ZTST_execchunk: status 0
ZTST_test: test produced standard output:

ZTST_test: and standard error:

Test successful.
ZTST_test: looking for new test
ZTST_test: examining line:

ZTST_test: examining line:

ZTST_test: examining line:
 for m in $mods
ZTST_getchunk: read code chunk:
 for m in $mods
 do
   zmodload $m || mods[(r)$m]=()
 done
ZTST_test: examining line:

Running test: Test loading of all compiled modules
ZTST_test: expecting status: 0
Input: /tmp/zsh.ztst.18085/ztst.in, output: /tmp/zsh.ztst.18085/ztst.out, error: /tmp/zsh.ztst.18085/ztst.terr
ZTST_execchunk: status 0
ZTST_test: test produced standard output:
The example module has now been set up.
ZTST_test: and standard error:

Test successful.
ZTST_test: looking for new test
ZTST_test: examining line:

ZTST_test: examining line:
 zmodload -e $mods
ZTST_getchunk: read code chunk:
 zmodload -e $mods
ZTST_test: examining line:

Running test: Check that zsh believes the modules did load
ZTST_test: expecting status: 0
Input: /tmp/zsh.ztst.18085/ztst.in, output: /tmp/zsh.ztst.18085/ztst.out, error: /tmp/zsh.ztst.18085/ztst.terr
ZTST_execchunk: status 0
ZTST_test: test produced standard output:

ZTST_test: and standard error:

Test successful.
ZTST_test: looking for new test
ZTST_test: examining line:

ZTST_test: examining line:

ZTST_test: examining line:
 zmodload bogus/notamodule
ZTST_getchunk: read code chunk:
 zmodload bogus/notamodule
ZTST_test: examining line:

Running test: Check that loading a nonexistent module fails
ZTST_test: expecting status: 1
Input: /tmp/zsh.ztst.18085/ztst.in, output: /tmp/zsh.ztst.18085/ztst.out, error: /tmp/zsh.ztst.18085/ztst.terr
ZTST_execchunk: status 1
ZTST_test: test produced standard output:

ZTST_test: and standard error:
(eval):1: failed to load module `bogus/notamodule': /opt/build/zsh-2018-06-18/Test/Modules/bogus/notamodule.so: cannot open shared object file: No such file or directory
Test successful.
ZTST_test: looking for new test
ZTST_test: examining line:

ZTST_test: examining line:
 zmodload -u bogus/notamodule
ZTST_getchunk: read code chunk:
 zmodload -u bogus/notamodule
ZTST_test: examining line:

Running test: Check that unloading a nonexistent module fails
ZTST_test: expecting status: 1
Input: /tmp/zsh.ztst.18085/ztst.in, output: /tmp/zsh.ztst.18085/ztst.out, error: /tmp/zsh.ztst.18085/ztst.terr
ZTST_execchunk: status 1
ZTST_test: test produced standard output:

ZTST_test: and standard error:
(eval):zmodload:1: no such module bogus/notamodule
Test successful.
ZTST_test: looking for new test
ZTST_test: examining line:

ZTST_test: examining line:

ZTST_test: examining line:
 zmodload -ab bogus
ZTST_getchunk: read code chunk:
 zmodload -ab bogus
 zmodload -ub bogus
ZTST_test: examining line:

Running test: Add/remove autoloaded builtin
ZTST_test: expecting status: 0
Input: /tmp/zsh.ztst.18085/ztst.in, output: /tmp/zsh.ztst.18085/ztst.out, error: /tmp/zsh.ztst.18085/ztst.terr
ZTST_execchunk: status 0
ZTST_test: test produced standard output:

ZTST_test: and standard error:

Test successful.
ZTST_test: looking for new test
ZTST_test: examining line:

ZTST_test: examining line:
 zmodload -ub bogus
ZTST_getchunk: read code chunk:
 zmodload -ub bogus
ZTST_test: examining line:
?(eval):zmodload:1: bogus: no such builtin
ZTST_getredir: read redir for '?':
(eval):zmodload:1: bogus: no such builtin
ZTST_test: examining line:

Running test: Fail to remove unautoloaded builtin
ZTST_test: expecting status: 1
Input: /tmp/zsh.ztst.18085/ztst.in, output: /tmp/zsh.ztst.18085/ztst.out, error: /tmp/zsh.ztst.18085/ztst.terr
ZTST_execchunk: status 1
ZTST_test: test produced standard output:

ZTST_test: and standard error:
(eval):zmodload:1: bogus: no such builtin
Test successful.
ZTST_test: looking for new test
ZTST_test: examining line:

ZTST_test: examining line:
 zmodload -ac bogus
ZTST_getchunk: read code chunk:
 zmodload -ac bogus
 zmodload -uc bogus
ZTST_test: examining line:

Running test: Add/remove autoloaded condition
ZTST_test: expecting status: 0
Input: /tmp/zsh.ztst.18085/ztst.in, output: /tmp/zsh.ztst.18085/ztst.out, error: /tmp/zsh.ztst.18085/ztst.terr
ZTST_execchunk: status 0
ZTST_test: test produced standard output:

ZTST_test: and standard error:

Test successful.
ZTST_test: looking for new test
ZTST_test: examining line:

ZTST_test: examining line:
 zmodload -uc bogus
ZTST_getchunk: read code chunk:
 zmodload -uc bogus
ZTST_test: examining line:
?(eval):zmodload:1: bogus: no such condition
ZTST_getredir: read redir for '?':
(eval):zmodload:1: bogus: no such condition
ZTST_test: examining line:

Running test: Fail to remove unautoloaded condition
ZTST_test: expecting status: 1
Input: /tmp/zsh.ztst.18085/ztst.in, output: /tmp/zsh.ztst.18085/ztst.out, error: /tmp/zsh.ztst.18085/ztst.terr
ZTST_execchunk: status 1
ZTST_test: test produced standard output:

ZTST_test: and standard error:
(eval):zmodload:1: bogus: no such condition
Test successful.
ZTST_test: looking for new test
ZTST_test: examining line:

ZTST_test: examining line:
 zmodload -ap bogus
ZTST_getchunk: read code chunk:
 zmodload -ap bogus
 zmodload -up bogus
ZTST_test: examining line:

Running test: Add/remove autoloaded parameter
ZTST_test: expecting status: 0
Input: /tmp/zsh.ztst.18085/ztst.in, output: /tmp/zsh.ztst.18085/ztst.out, error: /tmp/zsh.ztst.18085/ztst.terr
ZTST_execchunk: status 0
ZTST_test: test produced standard output:

ZTST_test: and standard error:

Test successful.
ZTST_test: looking for new test
ZTST_test: examining line:

ZTST_test: examining line:
 zmodload -up bogus
ZTST_getchunk: read code chunk:
 zmodload -up bogus
ZTST_test: examining line:
?(eval):zmodload:1: bogus: no such parameter
ZTST_getredir: read redir for '?':
(eval):zmodload:1: bogus: no such parameter
ZTST_test: examining line:

Running test: Fail to remove unautoloaded parameter
ZTST_test: expecting status: 1
Input: /tmp/zsh.ztst.18085/ztst.in, output: /tmp/zsh.ztst.18085/ztst.out, error: /tmp/zsh.ztst.18085/ztst.terr
ZTST_execchunk: status 1
ZTST_test: test produced standard output:

ZTST_test: and standard error:
(eval):zmodload:1: bogus: no such parameter
Test successful.
ZTST_test: looking for new test
ZTST_test: examining line:

ZTST_test: examining line:
 zmodload -af bogus
ZTST_getchunk: read code chunk:
 zmodload -af bogus
 zmodload -uf bogus
ZTST_test: examining line:

Running test: Add/remove autoloaded math function
ZTST_test: expecting status: 0
Input: /tmp/zsh.ztst.18085/ztst.in, output: /tmp/zsh.ztst.18085/ztst.out, error: /tmp/zsh.ztst.18085/ztst.terr
ZTST_execchunk: status 0
ZTST_test: test produced standard output:

ZTST_test: and standard error:

Test successful.
ZTST_test: looking for new test
ZTST_test: examining line:

ZTST_test: examining line:
 zmodload -uf bogus
ZTST_getchunk: read code chunk:
 zmodload -uf bogus
ZTST_test: examining line:
?(eval):zmodload:1: bogus: no such math function
ZTST_getredir: read redir for '?':
(eval):zmodload:1: bogus: no such math function
ZTST_test: examining line:

Running test: Fail to remove unautoloaded math function
ZTST_test: expecting status: 1
Input: /tmp/zsh.ztst.18085/ztst.in, output: /tmp/zsh.ztst.18085/ztst.out, error: /tmp/zsh.ztst.18085/ztst.terr
ZTST_execchunk: status 1
ZTST_test: test produced standard output:

ZTST_test: and standard error:
(eval):zmodload:1: bogus: no such math function
Test successful.
ZTST_test: looking for new test
ZTST_test: examining line:

ZTST_test: examining line:

ZTST_test: examining line:
 if [[ $mods[(r)zsh/example] == zsh/example ]]; then
ZTST_getchunk: read code chunk:
 if [[ $mods[(r)zsh/example] == zsh/example ]]; then
   zmodload -u zsh/example
   zmodload -ab zsh/example example
   builtin example
   zmodload -e zsh/example
 else print -u$ZTST_fd Warning: zsh/example not linked: not checking autoloading
 fi
ZTST_test: examining line:

Running test: Autoload a module via a builtin
ZTST_test: expecting status: 0
Input: /tmp/zsh.ztst.18085/ztst.in, output: /tmp/zsh.ztst.18085/ztst.out, error: /tmp/zsh.ztst.18085/ztst.terr
ZTST_execchunk: status 0
ZTST_test: test produced standard output:
Thank you for using the example module.  Have a nice day.
The example module has now been set up.
Options: 
Arguments:
Name: example

Integer Parameter: 42
String Parameter: example
Array Parameter: example array
ZTST_test: and standard error:

Test successful.
ZTST_test: looking for new test
ZTST_test: examining line:

ZTST_test: examining line:
 if [[ $mods[(r)zsh/example] == zsh/example ]]; then
ZTST_getchunk: read code chunk:
 if [[ $mods[(r)zsh/example] == zsh/example ]]; then
  zmodload -u zsh/example
  builtin example
 fi
ZTST_test: examining line:

Running test: Autoloads are persistent
ZTST_test: expecting status: 0
Input: /tmp/zsh.ztst.18085/ztst.in, output: /tmp/zsh.ztst.18085/ztst.out, error: /tmp/zsh.ztst.18085/ztst.terr
ZTST_execchunk: status 0
ZTST_test: test produced standard output:
Thank you for using the example module.  Have a nice day.
The example module has now been set up.
Options: 
Arguments:
Name: example

Integer Parameter: 42
String Parameter: example
Array Parameter: example array
ZTST_test: and standard error:

Test successful.
ZTST_test: looking for new test
ZTST_test: examining line:

ZTST_test: examining line:
  (zmodload -u zsh/parameter
ZTST_getchunk: read code chunk:
  (zmodload -u zsh/parameter
  zmodload -aF zsh/parameter b:fail
  fail
  print "Shouldn't get here.")
ZTST_test: examining line:
?(eval):3: module `zsh/parameter' has no such feature: `b:fail': autoload cancelled
ZTST_getredir: read redir for '?':
(eval):3: module `zsh/parameter' has no such feature: `b:fail': autoload cancelled
(eval):3: autoloading module zsh/parameter failed to define builtin: fail
ZTST_test: examining line:

Running test: Failed builtin autoload
ZTST_test: expecting status: 1
Input: /tmp/zsh.ztst.18085/ztst.in, output: /tmp/zsh.ztst.18085/ztst.out, error: /tmp/zsh.ztst.18085/ztst.terr
ZTST_execchunk: status 1
ZTST_test: test produced standard output:

ZTST_test: and standard error:
(eval):3: module `zsh/parameter' has no such feature: `b:fail': autoload cancelled
(eval):3: autoloading module zsh/parameter failed to define builtin: fail
Test successful.
ZTST_test: looking for new test
ZTST_test: examining line:

ZTST_test: examining line:
  (zmodload -u zsh/parameter
ZTST_getchunk: read code chunk:
  (zmodload -u zsh/parameter
  zmodload -aF zsh/parameter p:fail
  print $fail
  print "Shouldn't get here.")
ZTST_test: examining line:
?(eval):3: module `zsh/parameter' has no such feature: `p:fail': autoload cancelled
ZTST_getredir: read redir for '?':
(eval):3: module `zsh/parameter' has no such feature: `p:fail': autoload cancelled
(eval):3: autoloading module zsh/parameter failed to define parameter: fail
ZTST_test: examining line:

Running test: Failed parameter autoload
ZTST_test: expecting status: 1
Input: /tmp/zsh.ztst.18085/ztst.in, output: /tmp/zsh.ztst.18085/ztst.out, error: /tmp/zsh.ztst.18085/ztst.terr
ZTST_execchunk: status 1
ZTST_test: test produced standard output:

ZTST_test: and standard error:
(eval):3: module `zsh/parameter' has no such feature: `p:fail': autoload cancelled
(eval):3: autoloading module zsh/parameter failed to define parameter: fail
Test successful.
ZTST_test: looking for new test
ZTST_test: examining line:

ZTST_test: examining line:
  (zmodload -u zsh/parameter
ZTST_getchunk: read code chunk:
  (zmodload -u zsh/parameter
  zmodload -aF zsh/parameter c:fail
  [[ -fail foo ]]
  print "Shouldn't get here.")
ZTST_test: examining line:
?(eval):3: module `zsh/parameter' has no such feature: `c:fail': autoload cancelled
ZTST_getredir: read redir for '?':
(eval):3: module `zsh/parameter' has no such feature: `c:fail': autoload cancelled
(eval):3: unknown condition: -fail
ZTST_test: examining line:

Running test: Failed condition autoload
ZTST_test: expecting status: 2
Input: /tmp/zsh.ztst.18085/ztst.in, output: /tmp/zsh.ztst.18085/ztst.out, error: /tmp/zsh.ztst.18085/ztst.terr
ZTST_execchunk: status 2
ZTST_test: test produced standard output:

ZTST_test: and standard error:
(eval):3: module `zsh/parameter' has no such feature: `c:fail': autoload cancelled
(eval):3: unknown condition: -fail
Test successful.
ZTST_test: looking for new test
ZTST_test: examining line:

ZTST_test: examining line:
  (zmodload -u zsh/parameter
ZTST_getchunk: read code chunk:
  (zmodload -u zsh/parameter
  zmodload -aF zsh/parameter f:fail
  (( fail() )) )
ZTST_test: examining line:
?(eval):3: module `zsh/parameter' has no such feature: `f:fail': autoload cancelled
ZTST_getredir: read redir for '?':
(eval):3: module `zsh/parameter' has no such feature: `f:fail': autoload cancelled
(eval):3: autoloading module zsh/parameter failed to define math function: fail
ZTST_test: examining line:

Running test: Failed math function autoload
ZTST_test: expecting status: 2
Input: /tmp/zsh.ztst.18085/ztst.in, output: /tmp/zsh.ztst.18085/ztst.out, error: /tmp/zsh.ztst.18085/ztst.terr
ZTST_execchunk: status 2
ZTST_test: test produced standard output:

ZTST_test: and standard error:
(eval):3: module `zsh/parameter' has no such feature: `f:fail': autoload cancelled
(eval):3: autoloading module zsh/parameter failed to define math function: fail
Test successful.
ZTST_test: looking for new test
ZTST_test: examining line:

ZTST_test: examining line:
  zmodload -aF zsh/parameter f:fail2
ZTST_getchunk: read code chunk:
  zmodload -aF zsh/parameter f:fail2
ZTST_test: examining line:
?(eval):zmodload:1: module `zsh/parameter' has no such feature: `f:fail2'
ZTST_getredir: read redir for '?':
(eval):zmodload:1: module `zsh/parameter' has no such feature: `f:fail2'
ZTST_test: examining line:

Running test: Immediate autoload failure on non-existent feature when module loaded
ZTST_test: expecting status: 1
Input: /tmp/zsh.ztst.18085/ztst.in, output: /tmp/zsh.ztst.18085/ztst.out, error: /tmp/zsh.ztst.18085/ztst.terr
ZTST_execchunk: status 1
ZTST_test: test produced standard output:

ZTST_test: and standard error:
(eval):zmodload:1: module `zsh/parameter' has no such feature: `f:fail2'
Test successful.
ZTST_test: looking for new test
ZTST_test: examining line:

ZTST_test: examining line:
  (zmodload -u zsh/parameter
ZTST_getchunk: read code chunk:
  (zmodload -u zsh/parameter
  zmodload -aF zsh/parameter p:fail
  print $(( ${#modules} > 1 )) )
ZTST_test: examining line:
>1
ZTST_getredir: read redir for '>':
1
ZTST_test: examining line:
?(eval):3: module `zsh/parameter' has no such feature: `p:fail': autoload cancelled
ZTST_getredir: read redir for '?':
(eval):3: module `zsh/parameter' has no such feature: `p:fail': autoload cancelled
ZTST_test: examining line:

Running test: Autoloads checked on loading but don't necessarily effect current command
ZTST_test: expecting status: 0
Input: /tmp/zsh.ztst.18085/ztst.in, output: /tmp/zsh.ztst.18085/ztst.out, error: /tmp/zsh.ztst.18085/ztst.terr
ZTST_execchunk: status 0
ZTST_test: test produced standard output:
1
ZTST_test: and standard error:
(eval):3: module `zsh/parameter' has no such feature: `p:fail': autoload cancelled
Test successful.
ZTST_test: looking for new test
ZTST_test: examining line:

ZTST_test: examining line:
  zmodload -laF zsh/parameter
ZTST_getchunk: read code chunk:
  zmodload -laF zsh/parameter
ZTST_test: examining line:
>p:aliases
ZTST_getredir: read redir for '>':
p:aliases
p:builtins
p:commands
p:dirstack
p:dis_aliases
p:dis_builtins
p:dis_functions
p:dis_galiases
p:dis_patchars
p:dis_reswords
p:dis_saliases
p:funcfiletrace
p:funcsourcetrace
p:funcstack
p:functions
p:functrace
p:galiases
p:history
p:historywords
p:jobdirs
p:jobstates
p:jobtexts
p:modules
p:nameddirs
p:options
p:parameters
p:patchars
p:reswords
p:saliases
p:userdirs
ZTST_test: examining line:

Running test: List default autoloads
ZTST_test: expecting status: 0
Input: /tmp/zsh.ztst.18085/ztst.in, output: /tmp/zsh.ztst.18085/ztst.out, error: /tmp/zsh.ztst.18085/ztst.terr
ZTST_execchunk: status 0
ZTST_test: test produced standard output:
p:aliases
p:builtins
p:commands
p:dirstack
p:dis_aliases
p:dis_builtins
p:dis_functions
p:dis_functions_source
p:dis_galiases
p:dis_patchars
p:dis_reswords
p:dis_saliases
p:funcfiletrace
p:funcsourcetrace
p:funcstack
p:functions
p:functions_source
p:functrace
p:galiases
p:history
p:historywords
p:jobdirs
p:jobstates
p:jobtexts
p:modules
p:nameddirs
p:options
p:parameters
p:patchars
p:reswords
p:saliases
p:userdirs
p:usergroups
ZTST_test: and standard error:

--- /tmp/zsh.ztst.18085/ztst.out	2018-06-18 09:59:55.750110903 -0400
+++ /tmp/zsh.ztst.18085/ztst.tout	2018-06-18 09:59:55.770110540 -0400
@@ -5,6 +5,7 @@
 p:dis_aliases
 p:dis_builtins
 p:dis_functions
+p:dis_functions_source
 p:dis_galiases
 p:dis_patchars
 p:dis_reswords
@@ -13,6 +14,7 @@
 p:funcsourcetrace
 p:funcstack
 p:functions
+p:functions_source
 p:functrace
 p:galiases
 p:history
@@ -28,3 +30,4 @@
 p:reswords
 p:saliases
 p:userdirs
+p:usergroups
Test ../../../src/zsh-2018-06-18/Test/V01zmodload.ztst failed: output differs from expected as shown above for:
  zmodload -laF zsh/parameter
Was testing: List default autoloads
../../../src/zsh-2018-06-18/Test/V01zmodload.ztst: test failed.
ZTST_getsect: read section name: clean
ZTST_getchunk: read code chunk:
 eval "$deps"
 unset deps name modfile link auto load funcs mods moddeps
 unfunction zmodunload
ZTST_execchunk: status 0
ZTST_getchunk: read code chunk:

**************************************
0 successful test scripts, 1 failure, 0 skipped
**************************************
make[1]: *** [Makefile:188: check] Error 1
make[1]: Leaving directory '/opt/build/zsh-2018-06-18/Test'
make: *** [Makefile:263: check] Error 2

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-03-06 22:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-06 21:43 V01 Test Failure Vin Shelton
2023-03-06 21:55 ` Bart Schaefer
2023-03-06 22:16   ` Bart Schaefer
     [not found] <CGME20180618140755epcas4p312c0e4933d027d5a92f88c0b7c127b00@epcas4p3.samsung.com>
2018-06-18 14:07 ` V01 test failure Vin Shelton
2018-06-18 14:41   ` Peter Stephenson
2018-06-18 15:58     ` dana

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).