From c3e43541c0584a98186189a8525c9d67fdaee13f Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Thu, 15 Dec 2016 11:22:22 -0800 Subject: 40198: output of B02typeset differs when (( UID == 0 )) so do not attempt to redo that test in that case --- ChangeLog | 7 ++++++- 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 +2016-12-15 Barton E. Schaefer + + * 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 * 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 -- cgit 1.4.1