diff options
Diffstat (limited to 'Test')
-rw-r--r-- | Test/.distfiles | 1 | ||||
-rw-r--r-- | Test/V01zmodload.ztst | 1 | ||||
-rw-r--r-- | Test/V06parameter.ztst | 37 |
3 files changed, 39 insertions, 0 deletions
diff --git a/Test/.distfiles b/Test/.distfiles index 6fd78491b..53d2b2dd6 100644 --- a/Test/.distfiles +++ b/Test/.distfiles @@ -33,6 +33,7 @@ V02zregexparse.ztst V03mathfunc.ztst V04features.ztst V05styles.ztst +V06parameter.ztst Y01completion.ztst Y02compmatch.ztst Y03arguments.ztst diff --git a/Test/V01zmodload.ztst b/Test/V01zmodload.ztst index a51535791..55ac9004d 100644 --- a/Test/V01zmodload.ztst +++ b/Test/V01zmodload.ztst @@ -183,6 +183,7 @@ >p:dis_galiases >p:dis_reswords >p:dis_saliases +>p:funcsourcetrace >p:funcstack >p:functions >p:functrace diff --git a/Test/V06parameter.ztst b/Test/V06parameter.ztst new file mode 100644 index 000000000..8b4fc30d5 --- /dev/null +++ b/Test/V06parameter.ztst @@ -0,0 +1,37 @@ +%prep + + zmodload zsh/parameter + +%test + + print -r -- 'print Started functrace.zsh + : + print $LINENO + $functrace + $funcsourcetrace + : + fn() { + print Inside function $0 + print $LINENO + $functrace + $funcsourcetrace + } + : + fn + : + fpath=(. $fpath) + : + echo '\''print Inside $0 + print $LINENO + $functrace + $funcsourcetrace + '\'' >autofn + : + autoload autofn + : + autofn + autofn' >functrace.zsh + $ZTST_testdir/../Src/zsh +Z -f ./functrace.zsh +0:Function tracing +>Started functrace.zsh +>3 + + +>Inside function fn +>2 + ./functrace.zsh:10 + ./functrace.zsh:5 +>Inside autofn +>2 + ./functrace.zsh:20 + ./autofn:0 +>Inside autofn +>2 + ./functrace.zsh:21 + ./autofn:0 |