about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2013-10-10 17:45:42 +0100
committerPeter Stephenson <pws@zsh.org>2013-10-10 17:45:42 +0100
commitc35a561a9c0ea5f3190141c7ccf28720c100485a (patch)
treef5a03f7de3785ef1d85044169991051c1aab02c8 /Test
parent68a9bab11da470275fb28bea19e34db51a5093ba (diff)
downloadzsh-c35a561a9c0ea5f3190141c7ccf28720c100485a.tar.gz
zsh-c35a561a9c0ea5f3190141c7ccf28720c100485a.tar.xz
zsh-c35a561a9c0ea5f3190141c7ccf28720c100485a.zip
31810: tests for simple XTRACE output from conditions
Diffstat (limited to 'Test')
-rw-r--r--Test/E02xtrace.ztst9
1 files changed, 9 insertions, 0 deletions
diff --git a/Test/E02xtrace.ztst b/Test/E02xtrace.ztst
index 2420aebd7..093a587bd 100644
--- a/Test/E02xtrace.ztst
+++ b/Test/E02xtrace.ztst
@@ -118,3 +118,12 @@
 ?+./fnfile:5> :
 ?+./fnfile:6> fn
 ?+./fnfile:3> print This is fn.
+
+ set -x
+ [[ 'f o' = 'f x'* || 'b r' != 'z o' && 'squashy sound' < 'squishy sound' ]]
+ [[ -e nonexistentfile || ( -z '' && -t 3 ) ]]
+ set +x
+0:Trace for conditions
+?+(eval):2> [[ 'f o' == f\ x* || 'b r' != z\ o && 'squashy sound' < 'squishy sound' ]]
+?+(eval):3> [[ -e nonexistentfile || -z '' && -t 3 ]]
+?+(eval):4> set +x