Re: Proposed new API call: testcase group {begin|end}

Tom Tromey <[email protected]>
Newsgroups gmane.comp.sysutils.dejagnu.general
Message-ID <[email protected]>
>>>>> "Jacob" == Jacob Bachmeyer <[email protected]> writes:

Jacob> API call:  testcase group begin <name>
Jacob> API call:  testcase group end <name>
Jacob> Begin or end test group <name> where <name> is either a string that
Jacob> may contain multiple /-delimited parts or a Tcl list that will be
Jacob> joined into such a string.  Each call to "testcase group begin" must
Jacob> have a matching call to "testcase group end" with exactly the same
Jacob> name in both calls and both calls must be in the same file.

How about just having a single call which takes a block of code:

testcase group NAME {
  # your code here
}

This is easy to do in Tcl and will avoid any bugs involving incorrect
pairing.

Tom
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.