diff options
author | Yao Qi <yao@codesourcery.com> | 2012-05-03 02:05:15 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2012-05-03 02:05:15 +0000 |
commit | 2d4e03767f097cc306d9fbba613f8a8f4328b4ae (patch) | |
tree | 49745c1708a1122d3a4d31eb229488e1609daf0c /gdb/testsuite/gdb.base/foll-vfork.exp | |
parent | 6d0bb9f3db022411035cf5c74cc44cb6a6e6d07a (diff) | |
download | binutils-gdb-2d4e03767f097cc306d9fbba613f8a8f4328b4ae.tar.gz |
gdb/testsuite:
* gdb.base/catch-syscall.exp: Skip it before compilation if target
doesn't support.
* gdb.base/foll-exec.exp, gdb.base/foll-fork.exp: Likewise.
* gdb.base/foll-vfork.exp, gdb.multi/bkpt-multi-exec.exp: Likewise.
Diffstat (limited to 'gdb/testsuite/gdb.base/foll-vfork.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/foll-vfork.exp | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/gdb/testsuite/gdb.base/foll-vfork.exp b/gdb/testsuite/gdb.base/foll-vfork.exp index e0c8950e51c..7a3c04e582b 100644 --- a/gdb/testsuite/gdb.base/foll-vfork.exp +++ b/gdb/testsuite/gdb.base/foll-vfork.exp @@ -17,6 +17,20 @@ if { [is_remote target] || ![isnative] } then { continue } +# Until "set follow-fork-mode" and "catch vfork" are implemented on +# other targets... +# +if {![istarget "hppa*-hp-hpux*"] && ![istarget "*-linux*"]} then { + continue +} + +# Test to see if we are on an HP-UX 10.20 and if so, +# do not run these tests as catching vfork is disabled for +# 10.20. + +if [istarget "hppa*-hp-hpux10.20"] then { + return 0 +} # NOTE drow/2002-12-06: I don't know what the referenced kernel problem # is, but it appears to be fixed in recent HP/UX versions. @@ -44,22 +58,6 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile2}" "${binfile2}" executable {d return -1 } - -# Until "set follow-fork-mode" and "catch vfork" are implemented on -# other targets... -# -if {![istarget "hppa*-hp-hpux*"] && ![istarget "*-linux*"]} then { - continue -} - -# Test to see if we are on an HP-UX 10.20 and if so, -# do not run these tests as catching vfork is disabled for -# 10.20. - -if [istarget "hppa*-hp-hpux10.20"] then { - return 0 -} - # A few of these tests require a little more time than the standard # timeout allows. set oldtimeout $timeout |