dejagnu
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Tom Tromey
Subject: Re: Proposed new API call: testcase group {begin|end}
Date: Thu, 04 Jun 2020 15:11:48 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>>>>> "Jacob" == Jacob Bachmeyer <jcb62281@gmail.com> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]