testsuite: Provide means to regexp in multiline patterns
authorHans-Peter Nilsson <hp@axis.com>
Fri, 24 Feb 2023 19:07:23 +0000 (20:07 +0100)
committerHans-Peter Nilsson <hp@bitrange.com>
Tue, 7 Mar 2023 00:12:16 +0000 (01:12 +0100)
commit82318c57607ca983742630c9884e5d30920a3ce1
tree9d9cda75b800ac5957899f0ff8ed7a5d9dd8e0dd
parentdfb14cdd796ad9df6b5f2def047ef36b29385902
testsuite: Provide means to regexp in multiline patterns

Those multi-line-patterns are literal.  Sometimes a regexp
needs to be matched.  This is a start: just three elements
are supported: "(" ")" and the compound ")?" (and on second
thought, it can be argued that "(...)" alone is not useful).
Note that Tcl "string map" is documented to have the desired
effect: a once-over but no re-recognitions of previously
replaced mapped elements.  Also, drop a doubled "containing".

testsuite:
* lib/multiline.exp (_build_multiline_regex): Map
"{re:" to "(", similarly ")?" from ":re?}" and the
same without question mark.
gcc/testsuite/lib/multiline.exp