[gdb/testsuite] Fix regexp in list-thread-groups-available.exp
authorTom de Vries <tdevries@suse.de>
Thu, 19 Jul 2018 14:24:16 +0000 (16:24 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 19 Jul 2018 14:51:22 +0000 (16:51 +0200)
commitfbb1d502eeae135dbe6ac3b0b122e574a9b888d6
tree7189c741f19006db98c411a5366a0315857d5c7f
parentdb3410f80f793189d3c8afb8b80951333d3fe007
[gdb/testsuite] Fix regexp in list-thread-groups-available.exp

I ran into a gdb.mi/list-thread-groups-available.exp failure:
...
Running gdb/testsuite/gdb.mi/list-thread-groups-available.exp ...
FAIL: gdb.mi/list-thread-groups-available.exp:
        list available thread groups (unexpected output)
PASS: gdb.mi/list-thread-groups-available.exp:
        list available thread groups with filter
...
When doing an experiment of running it 100 times in a row, the failure
reproduced 3 times.

Analyzing the original failure led to insufficient quoting of square brackets
in a regexp.  This patch fixes the regexp, which resulted in 0 failures in a
100-in-a-row run.

Tested on x86_64-linux.

2018-07-19  Tom de Vries  <tdevries@suse.de>

* gdb.mi/list-thread-groups-available.exp (cores_re): Fix quoting in
regular expression.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.mi/list-thread-groups-available.exp