diff options
author | Barton E. Schaefer <schaefer@zsh.org> | 2016-12-15 11:22:22 -0800 |
---|---|---|
committer | Barton E. Schaefer <schaefer@zsh.org> | 2016-12-15 11:22:22 -0800 |
commit | c3e43541c0584a98186189a8525c9d67fdaee13f (patch) | |
tree | 2d89281572ba2739af081170e7c219c2d69a2837 | |
parent | dc1f3aae60d08ea4a3856299f85b2ed7c110508b (diff) | |
download | zsh-c3e43541c0584a98186189a8525c9d67fdaee13f.tar.gz zsh-c3e43541c0584a98186189a8525c9d67fdaee13f.tar.xz zsh-c3e43541c0584a98186189a8525c9d67fdaee13f.zip |
40198: output of B02typeset differs when (( UID == 0 )) so do not attempt to redo that test in that case
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | Test/V10private.ztst | 14 |
2 files changed, 15 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog index 47609f665..514ff3c53 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,9 @@ -2016-12-14 Barton E. Schaefer <schaefer@brasslantern.com> +2016-12-15 Barton E. Schaefer <schaefer@zsh.org> + + * 40198: Test/V10private.ztst: output of B02typeset differs when + (( UID == 0 )) so do not attempt to redo that test in that case + +2016-12-14 Barton E. Schaefer <schaefer@zsh.org> * 40179: Src/builtin.c: fix handling of "printf -" and "printf --" diff --git a/Test/V10private.ztst b/Test/V10private.ztst index 7ebf5a87f..78ecd48ea 100644 --- a/Test/V10private.ztst +++ b/Test/V10private.ztst @@ -15,11 +15,6 @@ (zmodload -u zsh/param/private && zmodload zsh/param/private) 0:unload and reload the module without crashing - ZTST_verbose=0 $ZTST_exe +Z -f $ZTST_srcdir/ztst.zsh private.TMP/B02 -0:typeset still works with zsh/param/private module loaded -*>* -*>* - typeset scalar_test=toplevel () { print $scalar_test @@ -295,6 +290,15 @@ F:future revision will create a global with this assignment () { private -h SECONDS } 0:private parameter may hide a special parameter + if (( UID )); then + ZTST_verbose=0 $ZTST_exe +Z -f $ZTST_srcdir/ztst.zsh private.TMP/B02 + else + ZTST_skip="cannot re-run typeset tests when tests run as superuser" + fi +0:typeset still works with zsh/param/private module loaded +*>* +*>* + %clean rm -r private.TMP |