From dc8c39efffd67c42ad5c630d892928a85a92dfca Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 4 Dec 2015 11:24:21 +0000 Subject: 37303: test WARN_CREATE_GLOBAL negative cases. --- Test/E01options.ztst | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Test/E01options.ztst') diff --git a/Test/E01options.ztst b/Test/E01options.ztst index c9427c755..f27076765 100644 --- a/Test/E01options.ztst +++ b/Test/E01options.ztst @@ -1120,6 +1120,15 @@ ?fn:5: scalar parameter foo1 created globally in function fn ?fn:15: numeric parameter foo5 created globally in function fn + fn() { + emulate -L zsh + setopt warncreateglobal + TZ=UTC date >&/dev/null + local um=$(TZ=UTC date 2>/dev/null) + } + fn +0:WARN_CREATE_GLOBAL negative cases + # This really just tests if XTRACE is egregiously broken. # To test it properly would need a full set of its own. fn() { print message; } -- cgit 1.4.1