Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] Run follow-fork tests on Linux
@ 2005-11-26  0:05 Michael Snyder
  2005-11-26  3:58 ` Andreas Schwab
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Michael Snyder @ 2005-11-26  0:05 UTC (permalink / raw)
  To: GDB Patches, Daniel Jacobowitz

[-- Attachment #1: Type: text/plain, Size: 173 bytes --]

This allows the tests "foll-fork" and "foll-vfork" to run on Linux,
where they mostly pass.  A little more verbose output from linux-nat.c
will fix the remaining failures.


[-- Attachment #2: testfork --]
[-- Type: text/plain, Size: 1676 bytes --]

2005-11-25  Michael Snyder  <msnyder@redhat.com>

	* gdb.base/foll-fork.exp: Run if istarget linux.
	Add PASS cases for linux.
	* gdb.base/foll-vfork.exp: Run if istarget linux.

Index: gdb.base/foll-vfork.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/foll-vfork.exp,v
retrieving revision 1.3
diff -p -r1.3 foll-vfork.exp
*** gdb.base/foll-vfork.exp	11 Dec 2002 02:04:45 -0000	1.3
--- gdb.base/foll-vfork.exp	25 Nov 2005 22:30:44 -0000
*************** if  { [gdb_compile "${srcdir}/${subdir}/
*** 55,61 ****
  # Until "set follow-fork-mode" and "catch vfork" are implemented on
  # other targets...
  #
! if ![istarget "hppa*-hp-hpux*"] then {
      continue
  }
  
--- 55,61 ----
  # Until "set follow-fork-mode" and "catch vfork" are implemented on
  # other targets...
  #
! if {![istarget "hppa*-hp-hpux*"] && ![istarget "*-pc-linux*"]} then {
      continue
  }
  
*************** proc vfork_parent_follow_to_bp {} {
*** 109,115 ****
     }
     send_gdb "continue\n"
     gdb_expect {
!       -re ".*Detaching after fork from process.*Breakpoint.*18.*$gdb_prompt "\
                        {pass "vfork parent follow, to bp"}
        -re "$gdb_prompt $" {fail "vfork parent follow, to bp"}
        timeout         {fail "(timeout) vfork parent follow, to bp" }
--- 109,115 ----
     }
     send_gdb "continue\n"
     gdb_expect {
!       -re ".*Detaching after fork from.*Breakpoint.*18.*$gdb_prompt "\
                        {pass "vfork parent follow, to bp"}
        -re "$gdb_prompt $" {fail "vfork parent follow, to bp"}
        timeout         {fail "(timeout) vfork parent follow, to bp" }

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-11-26  4:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-26  0:05 [RFA] Run follow-fork tests on Linux Michael Snyder
2005-11-26  3:58 ` Andreas Schwab
2005-11-28  8:26   ` Michael Snyder
2005-11-26  4:01 ` Mark Kettenis
2005-11-28 13:01   ` Michael Snyder
2005-11-26  4:03 ` Daniel Jacobowitz
2005-11-28 14:00   ` Michael Snyder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox