aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/siginfo-addr.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.base/siginfo-addr.c')
-rw-r--r--gdb/testsuite/gdb.base/siginfo-addr.c9
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);
}