This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Disable exec-dependent follow vfork tests for remote
- From: Don Breazeal <donb at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 28 May 2015 21:45:18 -0000
- Subject: [binutils-gdb] Disable exec-dependent follow vfork tests for remote
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=e970cb3401cf549accc92452f4888440fb983f39
commit e970cb3401cf549accc92452f4888440fb983f39
Author: Don Breazeal <donb@codesourcery.com>
Date: Thu May 28 13:36:05 2015 -0700
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.
Diff:
---
gdb/testsuite/ChangeLog | 5 +++++
gdb/testsuite/gdb.base/foll-vfork.exp | 29 +++++++++++++++++------------
2 files changed, 22 insertions(+), 12 deletions(-)
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 94a0329..b08b59d 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2015-05-28 Don Breazeal <donb@codesourcery.com>
+
+ * gdb.base/foll-vfork.exp (main): Disable exec-dependent
+ tests for remote targets by checking is_target_gdbserver.
+
2015-05-27 Doug Evans <dje@google.com>
* gdb.dwarf2/opaque-type-lookup-2.c: New file.
diff --git a/gdb/testsuite/gdb.base/foll-vfork.exp b/gdb/testsuite/gdb.base/foll-vfork.exp
index 78c5cc8..b94b7ea 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