1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-04 06:14:50 +01:00

37225: fix test for typeset with zsh/param/private

This commit is contained in:
Barton E. Schaefer 2015-11-26 09:30:05 -08:00
parent e4aec8c197
commit 2bab9f0394
2 changed files with 12 additions and 1 deletions

View file

@ -1,5 +1,7 @@
2015-11-26 Barton E. Schaefer <schaefer@zsh.org>
* 37225: Test/V10private.ztst: fix test from 37208
* 37224: Test/B02typeset.ztst: delete obsolete comment
2015-11-26 Peter Stephenson <p.stephenson@samsung.com>

View file

@ -6,12 +6,17 @@
ZTST_unimplemented="can't load the zsh/param/private module for testing"
fi
# Do not use .tmp here, ztst.zsh will remove it too soon (see %cleanup)
mkdir private.TMP
sed '/^%prep/a \
zmodload zsh/param/private' < $ZTST_srcdir/B02typeset.ztst > private.TMP/B02
%test
(zmodload -u zsh/param/private && zmodload zsh/param/private)
0:unload and reload the module without crashing
$ZTST_exe +Z -f $ZTST_srcdir/ztst.zsh $ZTST_srcdir/B02typeset.ztst
ZTST_verbose=0 $ZTST_exe +Z -f $ZTST_srcdir/ztst.zsh private.TMP/B02
0:typeset still works with zsh/param/private module loaded
*>*
*>*
@ -270,3 +275,7 @@ F:note "typeset" rather than "private" in output from outer
() { private -h SECONDS }
0:private parameter may hide a special parameter
%clean
rm -r private.TMP