summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/foll-vfork.exp
diff options
context:
space:
mode:
authorDon Breazeal <donb@codesourcery.com>2015-05-28 13:36:05 -0700
committerDon Breazeal <donb@codesourcery.com>2015-05-28 14:40:30 -0700
commite970cb3401cf549accc92452f4888440fb983f39 (patch)
tree507fadcac21141d774607253cb9da3e921e63670 /gdb/testsuite/gdb.base/foll-vfork.exp
parentbfacd19d64c76b740a4a9c18dce4277e4a9afde5 (diff)
Disable exec-dependent follow vfork tests for remote
The native-extended-gdbserver target now supports fork events and follow fork, but it does not yet support exec events. Some of the tests in gdb.base/foll-vfork.exp depend on exec events. This patch disables those tests for remote targets. We can re-enable these once the exec event support goes in. gdb/testsuite/ * gdb.base/foll-vfork.exp (main): Disable exec-dependent tests for remote targets by checking is_target_gdbserver.
Diffstat (limited to 'gdb/testsuite/gdb.base/foll-vfork.exp')
-rw-r--r--gdb/testsuite/gdb.base/foll-vfork.exp29
1 files changed, 17 insertions, 12 deletions
diff --git a/gdb/testsuite/gdb.base/foll-vfork.exp b/gdb/testsuite/gdb.base/foll-vfork.exp
index 78c5cc8224..b94b7ea7bc 100644
--- a/gdb/testsuite/gdb.base/foll-vfork.exp
+++ b/gdb/testsuite/gdb.base/foll-vfork.exp
@@ -524,18 +524,23 @@ with_test_prefix "check vfork support" {
check_vfork_catchpoints
}
-# Follow parent and follow child vfork tests with a child that execs.
-with_test_prefix "exec" {
- # These are tests of gdb's ability to follow the parent of a Unix
- # vfork system call. The child will subsequently call a variant
- # of the Unix exec system call.
- do_vfork_and_follow_parent_tests
-
- # These are tests of gdb's ability to follow the child of a Unix
- # vfork system call. The child will subsequently call a variant
- # of a Unix exec system call.
- #
- do_vfork_and_follow_child_tests_exec
+# There is no support for exec events in the RSP yet.
+if { ![gdb_is_target_remote] } {
+ # Follow parent and follow child vfork tests with a child that execs.
+ with_test_prefix "exec" {
+ # These are tests of gdb's ability to follow the parent of a Unix
+ # vfork system call. The child will subsequently call a variant
+ # of the Unix exec system call.
+ do_vfork_and_follow_parent_tests
+
+ # These are tests of gdb's ability to follow the child of a Unix
+ # vfork system call. The child will subsequently call a variant
+ # of a Unix exec system call.
+ #
+ do_vfork_and_follow_child_tests_exec
+ }
+} else {
+ unsupported "vfork with exec: exec events not supported for remote"
}
# Switch to test the case of the child exiting. We can't use