Fix test_gdb_complete_tab_multiple race
authorPedro Alves <palves@redhat.com>
Wed, 3 Jul 2019 15:57:48 +0000 (16:57 +0100)
committerPedro Alves <palves@redhat.com>
Wed, 3 Jul 2019 15:57:48 +0000 (16:57 +0100)
commitb2b2a2159876fa8db57ce017b949cafc6f1a32df
tree2b763c0578cc9f2383d75180e92d5d4f5b35ef4f
parent077a039f70d870899da31eb8cee597964515fa3c
Fix test_gdb_complete_tab_multiple race

Running 'make check-read1 TESTS="gdb.base/options.exp"' revealed a
race in test_gdb_complete_tab_multiple.  There's a gdb_test_multiple
call that expects a prompt in the middle of the regexp.  That's racy
because gdb_test_multiple includes a built-in FAIL pattern for the
prompt, which may match if gdb is slow enough to produce the rest of
the output after the prompt.

Fix this in the usual way of splitting the matching in two.

gdb/testsuite/ChangeLog:
2019-07-03  Pedro Alves  <palves@redhat.com>

* lib/completion-support.exp (test_gdb_complete_tab_multiple):
Split one gdb_test_multiple call in two to avoid a race.
gdb/testsuite/ChangeLog
gdb/testsuite/lib/completion-support.exp
This page took 0.025922 seconds and 4 git commands to generate.