~ubuntu-branches/ubuntu/karmic/zsh/karmic

« back to all changes in this revision

Viewing changes to Test/C05debug.ztst

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2009-06-02 10:40:25 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090602104025-lg6wynxpzqi08k2i
Tags: 4.3.10-1ubuntu1
* Resynchronise with Debian. Remaining changes:
  + debian/zshrc: Enable completions by default, unless
    skip_global_compinit is set

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
        # Failure
53
53
        exit 10
54
54
        HERE
55
 
  $ZTST_testdir/../Src/zsh -f ./zsh-trapreturn-bug2
 
55
  $ZTST_testdir/../Src/zsh -f ./zsh-trapreturn-bug2 2>erroutput.dif
 
56
  mystat=$?
 
57
  (
 
58
   setopt extendedglob
 
59
   print ${"$(< erroutput.dif)"%%:[^:]#: ./fdasfsdafd}
 
60
  )
 
61
  (( mystat == 0 ))
56
62
0: trapreturn handling bug is properly fixed
57
 
?./zsh-trapreturn-bug2:5: no such file or directory: ./fdasfsdafd
 
63
>./zsh-trapreturn-bug2:5
58
64
 
59
65
  fn() {
60
66
    setopt localtraps localoptions debugbeforecmd
147
153
  foo
148
154
2:Status of forced return from eval-style DEBUG trap
149
155
>foo
 
156
 
 
157
%clean
 
158
 
 
159
 rm -f bug-file bug-file2 erroutput.dif zsh-trapreturn-bug2