aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2005-11-25 22:16:43 +0000
committerMichael Snyder <msnyder@vmware.com>2005-11-25 22:16:43 +0000
commit29f62cb369b5373f5d616b2427c32248474e018b (patch)
treef68e16baad90438b738c1349a2e481ae67155541
parent2e7edaad725c2310a69879ec1d5f091d5f95d9a6 (diff)
downloadgdb-29f62cb369b5373f5d616b2427c32248474e018b.zip
gdb-29f62cb369b5373f5d616b2427c32248474e018b.tar.gz
gdb-29f62cb369b5373f5d616b2427c32248474e018b.tar.bz2
2005-11-25 Michael Snyder <msnyder@redhat.com>
* gdb.base/foll-fork.exp: Add PASS cases for linux.
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.base/foll-fork.exp6
2 files changed, 9 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index bf009b4..aaa7cf4 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2005-11-25 Michael Snyder <msnyder@redhat.com>
+
+ * gdb.base/foll-fork.exp: Add PASS cases for linux.
+
2005-11-11 Stephane Carrez <stcarrez@nerim.fr>
* gdb.asm/m68hc11.inc: Setup the data section.
diff --git a/gdb/testsuite/gdb.base/foll-fork.exp b/gdb/testsuite/gdb.base/foll-fork.exp
index 2ef3a4a..41b63f3 100644
--- a/gdb/testsuite/gdb.base/foll-fork.exp
+++ b/gdb/testsuite/gdb.base/foll-fork.exp
@@ -41,7 +41,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
# Until "set follow-fork-mode" and "catch fork" are implemented on
# other targets...
#
-if ![istarget "hppa*-hp-hpux*"] then {
+if {![istarget "hppa*-hp-hpux*"] && ![istarget "*-pc-linux*"]} then {
continue
}
@@ -155,6 +155,8 @@ proc catch_fork_child_follow {} {
gdb_expect {
-re "Catchpoint.*(forked process.*),.*in _fork_sys.*$gdb_prompt $"\
{pass "explicit child follow, catch fork"}
+ -re "Catchpoint.*(forked process.*),.*in _dl_sysinfo.*$gdb_prompt $"\
+ {pass "explicit child follow, catch fork"}
-re "$gdb_prompt $" {fail "explicit child follow, catch fork"}
timeout {fail "(timeout) explicit child follow, catch fork"}
}
@@ -227,6 +229,8 @@ proc tcatch_fork_parent_follow {} {
gdb_expect {
-re ".*in _fork_sys.*$gdb_prompt $"\
{pass "explicit parent follow, tcatch fork"}
+ -re ".*in _dl_sysinfo.*$gdb_prompt $"\
+ {pass "explicit parent follow, tcatch fork"}
-re "$gdb_prompt $" {fail "explicit parent follow, tcatch fork"}
timeout {fail "(timeout) explicit parent follow, tcatch fork"}
}