Don't rely on inferior I/O in gdb.base/siginfo-addr.exp
authorPedro Alves <palves@redhat.com>
Wed, 29 Jul 2015 10:09:36 +0000 (11:09 +0100)
committerPedro Alves <palves@redhat.com>
Wed, 29 Jul 2015 10:09:36 +0000 (11:09 +0100)
commit655669183104eb8eab559b5faf2b5a676ab6cd3f
treea5b80d0a9a8a7553f5b7217f038eb5908d2ecaed
parent11509220a045532b1995b4af5dac2f921b541003
Don't rely on inferior I/O in gdb.base/siginfo-addr.exp

No point in relying on stdio in this test.  Simply run to a breakpoint
instead.

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

* gdb.base/siginfo-addr.c (pass): New function.
(handler): Call it iff si_addr is correct.
* gdb.base/siginfo-addr.exp: Remove gdb_skip_stdio_test check.
Set a breakpoint at "pass" and continue to it.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/siginfo-addr.c
gdb/testsuite/gdb.base/siginfo-addr.exp