Make it easier to debug non-stop-fair-events.exp
authorPedro Alves <palves@redhat.com>
Wed, 16 Sep 2015 14:51:36 +0000 (15:51 +0100)
committerPedro Alves <palves@redhat.com>
Wed, 16 Sep 2015 14:51:36 +0000 (15:51 +0100)
commitd136eff549649f23b12121575362dfa09343ea0a
tree84c8cc62c220415efabb2c7dac8fa083d4c7bbca
parent991f019c506528fa94ac173db6f1120f8b2373bf
Make it easier to debug non-stop-fair-events.exp

If we enable infrun debug running this test, it quickly fails with a
full expect buffer.  That can be simply handled with a couple
exp_continues.  As it's annoying to hack this every time we need to
debug the test, this patch adds bits to enable debugging support
easily, with a one-line change.

And then, if any iteration of the test fails, we end up with a long
cascade of time outs.  Just bail out when we see the first fail.

gdb/testsuite/
2015-09-16  Pedro Alves  <palves@redhat.com>

* gdb.threads/non-stop-fair-events.exp (gdb_test_no_anchor)
(enable_debug): New procedures.
(test): Use them.  Bail out if waiting for threads fails.
(top level): Bail out if a test fails.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.threads/non-stop-fair-events.exp