* Test failure in test V01zmodload.tst
@ 2007-05-29 9:37 Vin Shelton
2007-05-29 9:51 ` Peter Stephenson
0 siblings, 1 reply; 2+ messages in thread
From: Vin Shelton @ 2007-05-29 9:37 UTC (permalink / raw)
To: zsh-workers
[-- Attachment #1: Output from V01zmodload --]
[-- Type: text/plain, Size: 12636 bytes --]
if test -n "gcc"; then \
cd .. && DESTDIR= \
make MODDIR=`pwd`/Test/Modules install.modules > /dev/null; \
fi
mkdir /opt/build/zsh-2007-05-28-2139/Test/Modules
mkdir /opt/build/zsh-2007-05-28-2139/Test/Modules/zsh
mkdir /opt/build/zsh-2007-05-28-2139/Test/Modules/zsh/net
for f in /opt/src/zsh-2007-05-28-2139/Test/V01*.ztst; do \
ZTST_exe=../Src/zsh \
../Src/zsh +Z -f /opt/src/zsh-2007-05-28-2139/Test/ztst.zsh $f; \
done
/opt/src/zsh-2007-05-28-2139/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:
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.in.24249, output: /tmp/zsh.ztst.out.24249, error: /tmp/zsh.ztst.terr.24249
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.in.24249, output: /tmp/zsh.ztst.out.24249, error: /tmp/zsh.ztst.terr.24249
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 -i $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.in.24249, output: /tmp/zsh.ztst.out.24249, error: /tmp/zsh.ztst.terr.24249
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.in.24249, output: /tmp/zsh.ztst.out.24249, error: /tmp/zsh.ztst.terr.24249
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 -i bogus/notamodule
ZTST_getchunk: read code chunk:
zmodload -i bogus/notamodule
ZTST_test: examining line:
Running test: Check that loading a nonexistent module fails
ZTST_test: expecting status: 1
Input: /tmp/zsh.ztst.in.24249, output: /tmp/zsh.ztst.out.24249, error: /tmp/zsh.ztst.terr.24249
ZTST_execchunk: status 1
ZTST_test: test produced standard output:
ZTST_test: and standard error:
(eval):1: failed to load module: bogus/notamodule
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.in.24249, output: /tmp/zsh.ztst.out.24249, error: /tmp/zsh.ztst.terr.24249
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.in.24249, output: /tmp/zsh.ztst.out.24249, error: /tmp/zsh.ztst.terr.24249
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 -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.in.24249, output: /tmp/zsh.ztst.out.24249, error: /tmp/zsh.ztst.terr.24249
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 -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.in.24249, output: /tmp/zsh.ztst.out.24249, error: /tmp/zsh.ztst.terr.24249
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 -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.in.24249, output: /tmp/zsh.ztst.out.24249, error: /tmp/zsh.ztst.terr.24249
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:
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 -u8 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.in.24249, output: /tmp/zsh.ztst.out.24249, error: /tmp/zsh.ztst.terr.24249
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
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.in.24249, output: /tmp/zsh.ztst.out.24249, error: /tmp/zsh.ztst.terr.24249
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.in.24249, output: /tmp/zsh.ztst.out.24249, error: /tmp/zsh.ztst.terr.24249
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.in.24249, output: /tmp/zsh.ztst.out.24249, error: /tmp/zsh.ztst.terr.24249
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.in.24249, output: /tmp/zsh.ztst.out.24249, error: /tmp/zsh.ztst.terr.24249
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.in.24249, output: /tmp/zsh.ztst.out.24249, error: /tmp/zsh.ztst.terr.24249
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.in.24249, output: /tmp/zsh.ztst.out.24249, error: /tmp/zsh.ztst.terr.24249
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:
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.in.24249, output: /tmp/zsh.ztst.out.24249, error: /tmp/zsh.ztst.terr.24249
make: [check] Error 127 (ignored)
rm -rf Modules .zcompdump
[-- Attachment #2: Type: text/plain, Size: 240 bytes --]
Peter,
Since your feature test checkin, V01zmodload is failing for me. I've
attched the output generated with ZTST_verbose set to 2. Please let
me know if there's more I can do.
HTH,
Vin
PS. Thanks for all the terrific work you do!
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Test failure in test V01zmodload.tst
2007-05-29 9:37 Test failure in test V01zmodload.tst Vin Shelton
@ 2007-05-29 9:51 ` Peter Stephenson
0 siblings, 0 replies; 2+ messages in thread
From: Peter Stephenson @ 2007-05-29 9:51 UTC (permalink / raw)
To: zsh-workers
On Tue, 29 May 2007 05:37:58 -0400
Vin Shelton <acs@alumni.princeton.edu> wrote:
> Since your feature test checkin, V01zmodload is failing for me. I've
> attched the output generated with ZTST_verbose set to 2. Please let
> me know if there's more I can do.
I should have noticed this, or I shouldn't have used functions with long
names.
Index: Src/Modules/tcp.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Modules/tcp.c,v
retrieving revision 1.43
diff -u -r1.43 tcp.c
--- Src/Modules/tcp.c 28 May 2007 22:57:41 -0000 1.43
+++ Src/Modules/tcp.c 29 May 2007 09:48:57 -0000
@@ -722,7 +722,7 @@
{
tcp_cleanup();
freelinklist(ztcp_sessions, (FreeFunc) ztcp_free_session);
- return setfeatureeanbles(m->nam, &module_features, NULL);
+ return setfeatureenables(m->nam, &module_features, NULL);
}
/**/
Index: Src/Zle/complete.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/complete.c,v
retrieving revision 1.35
diff -u -r1.35 complete.c
--- Src/Zle/complete.c 28 May 2007 22:57:42 -0000 1.35
+++ Src/Zle/complete.c 29 May 2007 09:48:58 -0000
@@ -1541,7 +1541,7 @@
deletehookfunc("invalidate_list", (Hookfn) invalidate_list);
deletehookdefs(m->nam, comphooks, sizeof(comphooks)/sizeof(*comphooks));
deletewrapper(m, wrapper);
- return seteatureenables(m->nam, &module_features, NULL);
+ return setfeatureenables(m->nam, &module_features, NULL);
}
/**/
--
Peter Stephenson <pws@csr.com> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php
To get further information regarding CSR, please visit our Investor Relations page at http://ir.csr.com/csr/about/overview
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-05-29 9:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-29 9:37 Test failure in test V01zmodload.tst Vin Shelton
2007-05-29 9:51 ` Peter Stephenson
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).