diff options
author | Pedro Alves <palves@redhat.com> | 2015-07-29 11:09:36 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2015-07-29 11:09:36 +0100 |
commit | 655669183104eb8eab559b5faf2b5a676ab6cd3f (patch) | |
tree | a5b80d0a9a8a7553f5b7217f038eb5908d2ecaed /gdb/testsuite/gdb.base/siginfo-addr.c | |
parent | 11509220a045532b1995b4af5dac2f921b541003 (diff) | |
download | gdb-655669183104eb8eab559b5faf2b5a676ab6cd3f.zip gdb-655669183104eb8eab559b5faf2b5a676ab6cd3f.tar.gz gdb-655669183104eb8eab559b5faf2b5a676ab6cd3f.tar.bz2 |
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.
Diffstat (limited to 'gdb/testsuite/gdb.base/siginfo-addr.c')
-rw-r--r-- | gdb/testsuite/gdb.base/siginfo-addr.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.base/siginfo-addr.c b/gdb/testsuite/gdb.base/siginfo-addr.c index a074b4d..c6d8556 100644 --- a/gdb/testsuite/gdb.base/siginfo-addr.c +++ b/gdb/testsuite/gdb.base/siginfo-addr.c @@ -26,13 +26,16 @@ static void *p; +void +pass (void) +{ +} + static void handler (int sig, siginfo_t *info, void *context) { if (info->si_addr == p) - printf ("Correct si_addr value.\n"); - else - printf ("Got si_addr = %p, expected %p.\n", info->si_addr, p); + pass (); _exit (0); } |