* Test Failure. 2020-03-08
@ 2020-03-08 12:38 Vin Shelton
2020-03-08 15:27 ` Daniel Shahaf
0 siblings, 1 reply; 5+ messages in thread
From: Vin Shelton @ 2020-03-08 12:38 UTC (permalink / raw)
To: Zsh Hackers' List
[-- Attachment #1: Type: text/plain, Size: 822 bytes --]
Using the latest sources, I'm getting the following test error in the
modload test:
--- /tmp/zsh.ztst.7939/ztst.err 2020-03-08 08:33:41.076674463 -0400
+++ /tmp/zsh.ztst.7939/ztst.terr 2020-03-08 08:33:41.080007796 -0400
@@ -0,0 +1 @@
+zsh:2: failed to load module `zsh/parameter':
/opt/zsh-2020-03-08/lib/zsh/5.8.0.1-dev/zsh/parameter.so: cannot open
shared object file: No such file or directory
Test ../../../src/zsh-2020-03-08/Test/V01zmodload.ztst failed: error output
differs from expected as shown above for:
$ZTST_testdir/../Src/zsh -fc '
zmodload zsh/parameter
unset options
echo $+options
'
Was testing: can unset a non-readonly autoloadable parameter after loading
the module
../../../src/zsh-2020-03-08/Test/V01zmodload.ztst: test failed.
Please let me know if you need more info.
Regards,
Vin
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Test Failure. 2020-03-08
2020-03-08 12:38 Test Failure. 2020-03-08 Vin Shelton
@ 2020-03-08 15:27 ` Daniel Shahaf
2020-03-08 20:47 ` Vin Shelton
0 siblings, 1 reply; 5+ messages in thread
From: Daniel Shahaf @ 2020-03-08 15:27 UTC (permalink / raw)
To: Vin Shelton; +Cc: Zsh Hackers' List
Vin Shelton wrote on Sun, Mar 08, 2020 at 08:38:53 -0400:
> Using the latest sources, I'm getting the following test error in the
> modload test:
>
> --- /tmp/zsh.ztst.7939/ztst.err 2020-03-08 08:33:41.076674463 -0400
> +++ /tmp/zsh.ztst.7939/ztst.terr 2020-03-08 08:33:41.080007796 -0400
> @@ -0,0 +1 @@
> +zsh:2: failed to load module `zsh/parameter':
> /opt/zsh-2020-03-08/lib/zsh/5.8.0.1-dev/zsh/parameter.so: cannot open shared object file: No such file or directory
> Test ../../../src/zsh-2020-03-08/Test/V01zmodload.ztst failed: error output differs from expected as shown above for:
> $ZTST_testdir/../Src/zsh -fc '
> zmodload zsh/parameter
> unset options
> echo $+options
> '
> Was testing: can unset a non-readonly autoloadable parameter after loading
> the module
> ../../../src/zsh-2020-03-08/Test/V01zmodload.ztst: test failed.
>
> Please let me know if you need more info.
Could you try the following, please?
diff --git a/Test/V01zmodload.ztst b/Test/V01zmodload.ztst
index c3c64a79d..4fddb0bcc 100644
--- a/Test/V01zmodload.ztst
+++ b/Test/V01zmodload.ztst
@@ -349,6 +349,7 @@
?(eval):9: file descriptor out of range
$ZTST_testdir/../Src/zsh -fc '
+ MODULE_PATH=${(q)MODULE_PATH}
if zmodload -e zsh/parameter; then zmodload -u zsh/parameter; fi
unset options
zmodload zsh/parameter
@@ -359,6 +360,7 @@
# Currently prints '1'.
$ZTST_testdir/../Src/zsh -fc '
+ MODULE_PATH=${(q)MODULE_PATH}
zmodload zsh/parameter
unset options
echo $+options
@@ -367,6 +369,7 @@
>0
$ZTST_testdir/../Src/zsh -fc '
+ MODULE_PATH=${(q)MODULE_PATH}
if zmodload -e zsh/parameter; then zmodload -u zsh/parameter; fi
unset builtins
'
@@ -375,13 +378,15 @@
# Currently, the 'unset' succeeds.
$ZTST_testdir/../Src/zsh -fc '
+ MODULE_PATH=${(q)MODULE_PATH}
zmodload zsh/parameter
unset builtins
'
1:can't unset a readonly autoloadable parameter after loading the module
-?zsh:3: read-only variable: builtins
+*?zsh:?: read-only variable: builtins
$ZTST_testdir/../Src/zsh -fc '
+ MODULE_PATH=${(q)MODULE_PATH}
zmodload zsh/parameter
zmodload -u zsh/parameter
echo $options
Cheers,
Daniel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Test Failure. 2020-03-08
2020-03-08 15:27 ` Daniel Shahaf
@ 2020-03-08 20:47 ` Vin Shelton
2020-03-09 1:59 ` Daniel Shahaf
0 siblings, 1 reply; 5+ messages in thread
From: Vin Shelton @ 2020-03-08 20:47 UTC (permalink / raw)
To: Daniel Shahaf; +Cc: Zsh Hackers' List
[-- Attachment #1.1: Type: text/plain, Size: 2488 bytes --]
Sadly, nope:
ZTST_verbose=2 make TESTNUM=V01 -e check
yields the attached.
- Vin
On Sun, Mar 8, 2020 at 11:28 AM Daniel Shahaf <d.s@daniel.shahaf.name>
wrote:
> Vin Shelton wrote on Sun, Mar 08, 2020 at 08:38:53 -0400:
> > Using the latest sources, I'm getting the following test error in the
> > modload test:
> >
> > --- /tmp/zsh.ztst.7939/ztst.err 2020-03-08 08:33:41.076674463 -0400
> > +++ /tmp/zsh.ztst.7939/ztst.terr 2020-03-08 08:33:41.080007796 -0400
> > @@ -0,0 +1 @@
> > +zsh:2: failed to load module `zsh/parameter':
> > /opt/zsh-2020-03-08/lib/zsh/5.8.0.1-dev/zsh/parameter.so: cannot open
> shared object file: No such file or directory
> > Test ../../../src/zsh-2020-03-08/Test/V01zmodload.ztst failed: error
> output differs from expected as shown above for:
> > $ZTST_testdir/../Src/zsh -fc '
> > zmodload zsh/parameter
> > unset options
> > echo $+options
> > '
> > Was testing: can unset a non-readonly autoloadable parameter after
> loading
> > the module
> > ../../../src/zsh-2020-03-08/Test/V01zmodload.ztst: test failed.
> >
> > Please let me know if you need more info.
>
> Could you try the following, please?
>
> diff --git a/Test/V01zmodload.ztst b/Test/V01zmodload.ztst
> index c3c64a79d..4fddb0bcc 100644
> --- a/Test/V01zmodload.ztst
> +++ b/Test/V01zmodload.ztst
> @@ -349,6 +349,7 @@
> ?(eval):9: file descriptor out of range
>
> $ZTST_testdir/../Src/zsh -fc '
> + MODULE_PATH=${(q)MODULE_PATH}
> if zmodload -e zsh/parameter; then zmodload -u zsh/parameter; fi
> unset options
> zmodload zsh/parameter
> @@ -359,6 +360,7 @@
> # Currently prints '1'.
>
> $ZTST_testdir/../Src/zsh -fc '
> + MODULE_PATH=${(q)MODULE_PATH}
> zmodload zsh/parameter
> unset options
> echo $+options
> @@ -367,6 +369,7 @@
> >0
>
> $ZTST_testdir/../Src/zsh -fc '
> + MODULE_PATH=${(q)MODULE_PATH}
> if zmodload -e zsh/parameter; then zmodload -u zsh/parameter; fi
> unset builtins
> '
> @@ -375,13 +378,15 @@
> # Currently, the 'unset' succeeds.
>
> $ZTST_testdir/../Src/zsh -fc '
> + MODULE_PATH=${(q)MODULE_PATH}
> zmodload zsh/parameter
> unset builtins
> '
> 1:can't unset a readonly autoloadable parameter after loading the module
> -?zsh:3: read-only variable: builtins
> +*?zsh:?: read-only variable: builtins
>
> $ZTST_testdir/../Src/zsh -fc '
> + MODULE_PATH=${(q)MODULE_PATH}
> zmodload zsh/parameter
> zmodload -u zsh/parameter
> echo $options
>
> Cheers,
>
> Daniel
>
[-- Attachment #1.2: Type: text/html, Size: 3817 bytes --]
[-- Attachment #2: err.out --]
[-- Type: application/octet-stream, Size: 31756 bytes --]
cd Test ; make check
make[1]: Entering directory '/SSD-2/opt/build/zsh-2020-03-08/Test'
if test -n "gcc"; then \
cd .. && DESTDIR= \
make MODDIR=`pwd`/Test/Modules install.modules > /dev/null; \
fi
if test -z "$ZTST_handler"; then \
ZTST_handler=runtests.zsh; \
fi; \
if ZTST_testlist="`for f in ../../../src/zsh-2020-03-08/Test/V01*.ztst; \
do echo $f; done`" \
ZTST_srcdir="../../../src/zsh-2020-03-08/Test" \
ZTST_exe=../Src/zsh \
../Src/zsh +Z -f ../../../src/zsh-2020-03-08/Test/$ZTST_handler; then \
stat=0; \
else \
stat=1; \
fi; \
sleep 1; \
rm -rf Modules .zcompdump; \
exit $stat
../../../src/zsh-2020-03-08/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.16781/ztst.in, output: /tmp/zsh.ztst.16781/ztst.out, error: /tmp/zsh.ztst.16781/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.16781/ztst.in, output: /tmp/zsh.ztst.16781/ztst.out, error: /tmp/zsh.ztst.16781/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.16781/ztst.in, output: /tmp/zsh.ztst.16781/ztst.out, error: /tmp/zsh.ztst.16781/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.16781/ztst.in, output: /tmp/zsh.ztst.16781/ztst.out, error: /tmp/zsh.ztst.16781/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.16781/ztst.in, output: /tmp/zsh.ztst.16781/ztst.out, error: /tmp/zsh.ztst.16781/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-2020-03-08/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.16781/ztst.in, output: /tmp/zsh.ztst.16781/ztst.out, error: /tmp/zsh.ztst.16781/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.16781/ztst.in, output: /tmp/zsh.ztst.16781/ztst.out, error: /tmp/zsh.ztst.16781/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.16781/ztst.in, output: /tmp/zsh.ztst.16781/ztst.out, error: /tmp/zsh.ztst.16781/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.16781/ztst.in, output: /tmp/zsh.ztst.16781/ztst.out, error: /tmp/zsh.ztst.16781/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.16781/ztst.in, output: /tmp/zsh.ztst.16781/ztst.out, error: /tmp/zsh.ztst.16781/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.16781/ztst.in, output: /tmp/zsh.ztst.16781/ztst.out, error: /tmp/zsh.ztst.16781/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.16781/ztst.in, output: /tmp/zsh.ztst.16781/ztst.out, error: /tmp/zsh.ztst.16781/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.16781/ztst.in, output: /tmp/zsh.ztst.16781/ztst.out, error: /tmp/zsh.ztst.16781/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.16781/ztst.in, output: /tmp/zsh.ztst.16781/ztst.out, error: /tmp/zsh.ztst.16781/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.16781/ztst.in, output: /tmp/zsh.ztst.16781/ztst.out, error: /tmp/zsh.ztst.16781/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.16781/ztst.in, output: /tmp/zsh.ztst.16781/ztst.out, error: /tmp/zsh.ztst.16781/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.16781/ztst.in, output: /tmp/zsh.ztst.16781/ztst.out, error: /tmp/zsh.ztst.16781/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.16781/ztst.in, output: /tmp/zsh.ztst.16781/ztst.out, error: /tmp/zsh.ztst.16781/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.16781/ztst.in, output: /tmp/zsh.ztst.16781/ztst.out, error: /tmp/zsh.ztst.16781/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.16781/ztst.in, output: /tmp/zsh.ztst.16781/ztst.out, error: /tmp/zsh.ztst.16781/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.16781/ztst.in, output: /tmp/zsh.ztst.16781/ztst.out, error: /tmp/zsh.ztst.16781/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.16781/ztst.in, output: /tmp/zsh.ztst.16781/ztst.out, error: /tmp/zsh.ztst.16781/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_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: examining line:
Running test: List default autoloads
ZTST_test: expecting status: 0
Input: /tmp/zsh.ztst.16781/ztst.in, output: /tmp/zsh.ztst.16781/ztst.out, error: /tmp/zsh.ztst.16781/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:
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
zmodload -ac -I zsh/example ex
[[ exam -ex ple ]]
zmodload -e zsh/example
else :
fi
ZTST_test: examining line:
Running test: Autoload a module via a condition
ZTST_test: expecting status: 0
Input: /tmp/zsh.ztst.16781/ztst.in, output: /tmp/zsh.ztst.16781/ztst.out, error: /tmp/zsh.ztst.16781/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.
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
zmodload -ap zsh/example exint
: $exint
zmodload -e zsh/example
else :
fi
ZTST_test: examining line:
Running test: Autoload a module via a parameter
ZTST_test: expecting status: 0
Input: /tmp/zsh.ztst.16781/ztst.in, output: /tmp/zsh.ztst.16781/ztst.out, error: /tmp/zsh.ztst.16781/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.
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
zmodload -af zsh/example sum
(( sum(1) ))
zmodload -e zsh/example
else :
fi
ZTST_test: examining line:
Running test: Autoload a module via a math function
ZTST_test: expecting status: 0
Input: /tmp/zsh.ztst.16781/ztst.in, output: /tmp/zsh.ztst.16781/ztst.out, error: /tmp/zsh.ztst.16781/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.
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 -A example=zsh/example
ZTST_getchunk: read code chunk:
zmodload -A example=zsh/example
zmodload -A
ZTST_test: examining line:
>example -> zsh/example
ZTST_getredir: read redir for '>':
example -> zsh/example
ZTST_test: examining line:
Running test: Test creating a module alias
ZTST_test: expecting status: 0
Input: /tmp/zsh.ztst.16781/ztst.in, output: /tmp/zsh.ztst.16781/ztst.out, error: /tmp/zsh.ztst.16781/ztst.terr
ZTST_execchunk: status 0
ZTST_test: test produced standard output:
example -> zsh/example
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 example
zmodload -ab example
builtin example
zmodload -e example
else :
fi
ZTST_test: examining line:
Running test: Unload/autoload the module via its alias
ZTST_test: expecting status: 0
Input: /tmp/zsh.ztst.16781/ztst.in, output: /tmp/zsh.ztst.16781/ztst.out, error: /tmp/zsh.ztst.16781/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 -R example
ZTST_getchunk: read code chunk:
zmodload -R example
zmodload -e example
ZTST_test: examining line:
Running test: Delete the module alias again
ZTST_test: expecting status: 1
Input: /tmp/zsh.ztst.16781/ztst.in, output: /tmp/zsh.ztst.16781/ztst.out, error: /tmp/zsh.ztst.16781/ztst.terr
ZTST_execchunk: status 1
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 >zmodload_list
ZTST_getchunk: read code chunk:
zmodload >zmodload_list
print -l ${(o)mods} >mods_list
diff zmodload_list mods_list
ZTST_test: examining line:
Running test: Listing with zmodload should give all our modules.
ZTST_test: expecting status: 0
Input: /tmp/zsh.ztst.16781/ztst.in, output: /tmp/zsh.ztst.16781/ztst.out, error: /tmp/zsh.ztst.16781/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:
mods[(r)zsh/main]=()
ZTST_getchunk: read code chunk:
mods[(r)zsh/main]=()
zmodunload $mods
zmodload zsh/parameter
ZTST_test: examining line:
Running test: Unload the modules loaded by this test suite
ZTST_test: expecting status: 0
Input: /tmp/zsh.ztst.16781/ztst.in, output: /tmp/zsh.ztst.16781/ztst.out, error: /tmp/zsh.ztst.16781/ztst.terr
ZTST_execchunk: status 0
ZTST_test: test produced standard output:
Thank you for using the example module. Have a nice day.
ZTST_test: and standard error:
Test successful.
ZTST_test: looking for new test
ZTST_test: examining line:
ZTST_test: examining line:
zmodload -aF zsh/zftp b:zftp
ZTST_getchunk: read code chunk:
zmodload -aF zsh/zftp b:zftp
zmodload -LaF | grep zftp
ZTST_test: examining line:
>zmodload -Fa zsh/zftp b:zftp
ZTST_getredir: read redir for '>':
zmodload -Fa zsh/zftp b:zftp
ZTST_test: examining line:
Running test: Listing feature autoloads includes unloaded modules
ZTST_test: expecting status: 0
Input: /tmp/zsh.ztst.16781/ztst.in, output: /tmp/zsh.ztst.16781/ztst.out, error: /tmp/zsh.ztst.16781/ztst.terr
ZTST_execchunk: status 0
ZTST_test: test produced standard output:
zmodload -Fa zsh/zftp b:zftp
ZTST_test: and standard error:
Test successful.
ZTST_test: looking for new test
ZTST_test: examining line:
ZTST_test: examining line:
if ! zmodload zsh/system >/dev/null 2>&1; then
ZTST_getchunk: read code chunk:
if ! zmodload zsh/system >/dev/null 2>&1; then
ZTST_skip="zsh/system module not available"
else
zmodload -lF zsh/system
zmodload -F zsh/system -p:errnos
print ${+errnos}
zmodload -lF zsh/system
zmodload -F zsh/system +p:errnos
print ${+errnos}
zmodload -lF zsh/system
fi
ZTST_test: examining line:
>+b:syserror
ZTST_getredir: read redir for '>':
+b:syserror
+b:sysread
+b:syswrite
+b:sysopen
+b:sysseek
+b:zsystem
+f:systell
+p:errnos
+p:sysparams
0
+b:syserror
+b:sysread
+b:syswrite
+b:sysopen
+b:sysseek
+b:zsystem
+f:systell
-p:errnos
+p:sysparams
1
+b:syserror
+b:sysread
+b:syswrite
+b:sysopen
+b:sysseek
+b:zsystem
+f:systell
+p:errnos
+p:sysparams
ZTST_test: examining line:
Running test: Regression tests for index bug with math functions.
ZTST_test: expecting status: 0
Input: /tmp/zsh.ztst.16781/ztst.in, output: /tmp/zsh.ztst.16781/ztst.out, error: /tmp/zsh.ztst.16781/ztst.terr
ZTST_execchunk: status 0
ZTST_test: test produced standard output:
+b:syserror
+b:sysread
+b:syswrite
+b:sysopen
+b:sysseek
+b:zsystem
+f:systell
+p:errnos
+p:sysparams
0
+b:syserror
+b:sysread
+b:syswrite
+b:sysopen
+b:sysseek
+b:zsystem
+f:systell
-p:errnos
+p:sysparams
1
+b:syserror
+b:sysread
+b:syswrite
+b:sysopen
+b:sysseek
+b:zsystem
+f:systell
+p:errnos
+p:sysparams
ZTST_test: and standard error:
Test successful.
ZTST_test: looking for new test
ZTST_test: examining line:
ZTST_test: examining line:
if ! zmodload zsh/system >/dev/null 2>&1; then
ZTST_getchunk: read code chunk:
if ! zmodload zsh/system >/dev/null 2>&1; then
ZTST_skip="zsh/system module not available"
else
zmodload -F zsh/system -f:systell
zmodload -lF zsh/system
(print $(( systell(-1) )))
zmodload -F zsh/system +f:systell
zmodload -lF zsh/system
(print $(( systell(-1) )))
fi
ZTST_test: examining line:
>+b:syserror
ZTST_getredir: read redir for '>':
+b:syserror
+b:sysread
+b:syswrite
+b:sysopen
+b:sysseek
+b:zsystem
-f:systell
+p:errnos
+p:sysparams
+b:syserror
+b:sysread
+b:syswrite
+b:sysopen
+b:sysseek
+b:zsystem
+f:systell
+p:errnos
+p:sysparams
ZTST_test: examining line:
?(eval):6: unknown function: systell
ZTST_getredir: read redir for '?':
(eval):6: unknown function: systell
(eval):9: file descriptor out of range
ZTST_test: examining line:
Running test: Module Features for math functions
ZTST_test: expecting status: 1
Input: /tmp/zsh.ztst.16781/ztst.in, output: /tmp/zsh.ztst.16781/ztst.out, error: /tmp/zsh.ztst.16781/ztst.terr
ZTST_execchunk: status 1
ZTST_test: test produced standard output:
+b:syserror
+b:sysread
+b:syswrite
+b:sysopen
+b:sysseek
+b:zsystem
-f:systell
+p:errnos
+p:sysparams
+b:syserror
+b:sysread
+b:syswrite
+b:sysopen
+b:sysseek
+b:zsystem
+f:systell
+p:errnos
+p:sysparams
ZTST_test: and standard error:
(eval):6: unknown function: systell
(eval):9: file descriptor out of range
Test successful.
ZTST_test: looking for new test
ZTST_test: examining line:
ZTST_test: examining line:
$ZTST_testdir/../Src/zsh -fc '
ZTST_getchunk: read code chunk:
$ZTST_testdir/../Src/zsh -fc '
MODULE_PATH=${(q)MODULE_PATH}
if zmodload -e zsh/parameter; then zmodload -u zsh/parameter; fi
unset options
zmodload zsh/parameter
echo $+options
'
ZTST_test: examining line:
>0
ZTST_getredir: read redir for '>':
0
ZTST_test: examining line:
Running test: can unset a non-readonly autoloadable parameter before loading the module
ZTST_test: expecting status: -
Input: /tmp/zsh.ztst.16781/ztst.in, output: /tmp/zsh.ztst.16781/ztst.out, error: /tmp/zsh.ztst.16781/ztst.terr
ZTST_execchunk: status 0
ZTST_test: test produced standard output:
0
ZTST_test: and standard error:
zsh:5: failed to load module `zsh/parameter': /opt/zsh-2020-03-08/lib/zsh/5.8.0.1-dev/zsh/parameter.so: cannot open shared object file: No such file or directory
Test failed, as expected.
ZTST_test: looking for new test
ZTST_test: examining line:
ZTST_test: examining line:
$ZTST_testdir/../Src/zsh -fc '
ZTST_getchunk: read code chunk:
$ZTST_testdir/../Src/zsh -fc '
MODULE_PATH=${(q)MODULE_PATH}
zmodload zsh/parameter
unset options
echo $+options
'
ZTST_test: examining line:
>0
ZTST_getredir: read redir for '>':
0
ZTST_test: examining line:
Running test: can unset a non-readonly autoloadable parameter after loading the module
ZTST_test: expecting status: 0
Input: /tmp/zsh.ztst.16781/ztst.in, output: /tmp/zsh.ztst.16781/ztst.out, error: /tmp/zsh.ztst.16781/ztst.terr
ZTST_execchunk: status 0
ZTST_test: test produced standard output:
0
ZTST_test: and standard error:
zsh:3: failed to load module `zsh/parameter': /opt/zsh-2020-03-08/lib/zsh/5.8.0.1-dev/zsh/parameter.so: cannot open shared object file: No such file or directory
--- /tmp/zsh.ztst.16781/ztst.err 2020-03-08 16:42:41.490051919 -0400
+++ /tmp/zsh.ztst.16781/ztst.terr 2020-03-08 16:42:41.490051919 -0400
@@ -0,0 +1 @@
+zsh:3: failed to load module `zsh/parameter': /opt/zsh-2020-03-08/lib/zsh/5.8.0.1-dev/zsh/parameter.so: cannot open shared object file: No such file or directory
Test ../../../src/zsh-2020-03-08/Test/V01zmodload.ztst failed: error output differs from expected as shown above for:
$ZTST_testdir/../Src/zsh -fc '
MODULE_PATH=${(q)MODULE_PATH}
zmodload zsh/parameter
unset options
echo $+options
'
Was testing: can unset a non-readonly autoloadable parameter after loading the module
../../../src/zsh-2020-03-08/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:190: check] Error 1
make[1]: Leaving directory '/SSD-2/opt/build/zsh-2020-03-08/Test'
make: *** [Makefile:263: check] Error 2
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Test Failure. 2020-03-08
2020-03-08 20:47 ` Vin Shelton
@ 2020-03-09 1:59 ` Daniel Shahaf
2020-03-09 2:08 ` Vin Shelton
0 siblings, 1 reply; 5+ messages in thread
From: Daniel Shahaf @ 2020-03-09 1:59 UTC (permalink / raw)
To: Vin Shelton; +Cc: Zsh Hackers' List
Vin Shelton wrote on Sun, 08 Mar 2020 16:47 -0400:
> Sadly, nope:
>
> ZTST_verbose=2 make TESTNUM=V01 -e check
>
> yields the attached.
Thanks for the debug info. I've reproduced this now (didn't have time
for that yesterday) and pushed a fix to master. Sorry for the breakage.
Daniel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Test Failure. 2020-03-08
2020-03-09 1:59 ` Daniel Shahaf
@ 2020-03-09 2:08 ` Vin Shelton
0 siblings, 0 replies; 5+ messages in thread
From: Vin Shelton @ 2020-03-09 2:08 UTC (permalink / raw)
To: Daniel Shahaf; +Cc: Zsh Hackers' List
[-- Attachment #1: Type: text/plain, Size: 456 bytes --]
NP. I can confirm that the test failure is gone.
Thanks,
Vin
On Sun, Mar 8, 2020 at 10:00 PM Daniel Shahaf <d.s@daniel.shahaf.name>
wrote:
> Vin Shelton wrote on Sun, 08 Mar 2020 16:47 -0400:
> > Sadly, nope:
> >
> > ZTST_verbose=2 make TESTNUM=V01 -e check
> >
> > yields the attached.
>
> Thanks for the debug info. I've reproduced this now (didn't have time
> for that yesterday) and pushed a fix to master. Sorry for the breakage.
>
> Daniel
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-03-09 2:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-08 12:38 Test Failure. 2020-03-08 Vin Shelton
2020-03-08 15:27 ` Daniel Shahaf
2020-03-08 20:47 ` Vin Shelton
2020-03-09 1:59 ` Daniel Shahaf
2020-03-09 2:08 ` Vin Shelton
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).