diff options
author | Peter Stephenson <pws@zsh.org> | 2015-12-04 11:24:21 +0000 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2015-12-04 11:24:21 +0000 |
commit | dc8c39efffd67c42ad5c630d892928a85a92dfca (patch) | |
tree | 722a56d90dd64e1fa035a073e2393c24a6dc7edd /Test/E01options.ztst | |
parent | e40a14c5e4f24f45446e47176c699c586c46d624 (diff) | |
download | zsh-dc8c39efffd67c42ad5c630d892928a85a92dfca.tar.gz zsh-dc8c39efffd67c42ad5c630d892928a85a92dfca.tar.xz zsh-dc8c39efffd67c42ad5c630d892928a85a92dfca.zip |
37303: test WARN_CREATE_GLOBAL negative cases.
Diffstat (limited to 'Test/E01options.ztst')
-rw-r--r-- | Test/E01options.ztst | 9 |
1 files changed, 9 insertions, 0 deletions
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; } |