[Bug testsuite/34553] New: [gdb/testsuite] Return in with_test_prefix doesn't return

"vries at gcc dot gnu.org via Gdb-prs" <[email protected]>
Newsgroups gmane.comp.gdb.bugs.discuss
Message-ID <[email protected]/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=34553

            Bug ID: 34553
           Summary: [gdb/testsuite] Return in with_test_prefix doesn't
                    return
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: testsuite
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

In this comment ( https://sourceware.org/bugzilla/show_bug.cgi?id=33205#c10 )
the following oddity was noted:
...
proc with_test_prefix { body } {
    catch {uplevel 1 $body} result options
    return -options $options $result
}

with_test_prefix {
  return
}

puts "HI"


If you run this, it prints HI:

$ tclsh q.tcl 
HI


But to me it seems like it should not.
...

-- 
You are receiving this mail because:
You are on the CC list for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.