From 29f62cb369b5373f5d616b2427c32248474e018b Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Fri, 25 Nov 2005 22:16:43 +0000 Subject: 2005-11-25 Michael Snyder * gdb.base/foll-fork.exp: Add PASS cases for linux. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.base/foll-fork.exp | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index bf009b47c7d..aaa7cf43502 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2005-11-25 Michael Snyder + + * gdb.base/foll-fork.exp: Add PASS cases for linux. + 2005-11-11 Stephane Carrez * 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 2ef3a4a0ad7..41b63f39001 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"} } -- cgit v1.2.1