summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.threads
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2005-04-30 19:56:47 +0000
committerDaniel Jacobowitz <dan@debian.org>2005-04-30 19:56:47 +0000
commit07d502e1e2d9ba2f910c3219fc4a78ce4848569a (patch)
tree4ec04fd7ac7a7056529e200a1a3ea45c7d9dbe3c /gdb/testsuite/gdb.threads
parent5a018c788b280bc9df60777148bcf660120ce0f5 (diff)
downloadgdb-07d502e1e2d9ba2f910c3219fc4a78ce4848569a.tar.gz
* gdb.threads/staticthreads.exp: Override signal to check for hppa.
Slightly relax "sem_post" name checking.
Diffstat (limited to 'gdb/testsuite/gdb.threads')
-rw-r--r--gdb/testsuite/gdb.threads/staticthreads.exp15
1 files changed, 11 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.threads/staticthreads.exp b/gdb/testsuite/gdb.threads/staticthreads.exp
index bf04fa3bcee..53ceaa06fa6 100644
--- a/gdb/testsuite/gdb.threads/staticthreads.exp
+++ b/gdb/testsuite/gdb.threads/staticthreads.exp
@@ -1,6 +1,6 @@
# static.exp -- test script, for GDB, the GNU debugger.
-# Copyright 2004 Free Software Foundation, Inc.
+# Copyright 2004, 2005 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -62,10 +62,17 @@ gdb_test_multiple "continue" "$test" {
# See if handle SIG32 helps (a little) with a static multi-threaded
# program.
+set sig "SIG32"
+
+# SIGRTMIN is 37 on hppa-linux and hpux
+if [istarget hppa*-*-*] {
+ set sig "SIG37"
+}
+
rerun_to_main
-gdb_test "handle SIG32 nostop noprint pass"
-set test "Handle SIG32 helps"
-gdb_test "continue" " sem_post .*" "handle SIG32 helps"
+gdb_test "handle $sig nostop noprint pass"
+set test "Handle $sig helps"
+gdb_test "continue" " .*sem_post .*" "handle $sig helps"
# See if info threads produces anything approaching a thread list.