This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFA] Run follow-fork tests on Linux


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.

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" }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]