]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb/testsuite] Make gdb.threads/inf-thr-count.exp more readable
authorTom de Vries <tdevries@suse.de>
Fri, 2 May 2025 08:28:13 +0000 (10:28 +0200)
committerTom de Vries <tdevries@suse.de>
Fri, 2 May 2025 08:28:13 +0000 (10:28 +0200)
commit0de07b986383f8be874df352482ea404760202c5
treeb56467eb165e2cac64de81b34a5a395fa70fef56
parent3cecedf089a996d61ba73582b452786e3c6af869
[gdb/testsuite] Make gdb.threads/inf-thr-count.exp more readable

While investigating a timeout in gdb.threads/inf-thr-count.exp I noticed that
it uses quite some escaping, resulting in hard-to-parse regexps like
"\\\$$::decimal".

Fix this by reducing the escaping using:
- quoting strings using {} instead of "", and
- string_to_regexp.

Also use multi_line to split up long multi-line regexps.

Tested on x86_64-linux.
gdb/testsuite/gdb.threads/inf-thr-count.exp