add non-stop test that stresses thread starvation issues
authorPedro Alves <palves@redhat.com>
Mon, 29 Dec 2014 19:41:07 +0000 (19:41 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 9 Jan 2015 14:44:42 +0000 (14:44 +0000)
commitede9f622af1f2634c1227a3ed5f5ea44929573d2
treeb85493a499b13ce5dba2c10fb52309a4c9918923
parent582511be69deb0e9d52efd6d51f860b6bee02a64
add non-stop test that stresses thread starvation issues

This commit adds a non-stop mode test originally inspired by
signal-while-stepping-over-bp-other-thread.exp, that exposes the
thread starvation issues fixed by the previous patches.  It sets a set
of threads stepping in parallel, and has one of them get a signal.
Without the previous fixes, this would fail with timeouts.

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

* gdb.threads/non-stop-fair-events.c: New file.
* gdb.threads/non-stop-fair-events.exp: New file.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.threads/non-stop-fair-events.c [new file with mode: 0644]
gdb/testsuite/gdb.threads/non-stop-fair-events.exp [new file with mode: 0644]