summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2016-12-15 11:22:22 -0800
committerBarton E. Schaefer <schaefer@zsh.org>2016-12-15 11:22:22 -0800
commitc3e43541c0584a98186189a8525c9d67fdaee13f (patch)
tree2d89281572ba2739af081170e7c219c2d69a2837 /Test
parentdc1f3aae60d08ea4a3856299f85b2ed7c110508b (diff)
downloadzsh-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
Diffstat (limited to 'Test')
-rw-r--r--Test/V10private.ztst14
1 files changed, 9 insertions, 5 deletions
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