From patchwork Thu May 28 22:12:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Don Breazeal X-Patchwork-Id: 6972 Received: (qmail 65932 invoked by alias); 28 May 2015 22:13:12 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 65922 invoked by uid 89); 28 May 2015 22:13:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 28 May 2015 22:13:10 +0000 Received: from svr-orw-fem-02x.mgc.mentorg.com ([147.34.96.206] helo=SVR-ORW-FEM-02.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1Yy631-0005jv-Ge from Don_Breazeal@mentor.com for gdb-patches@sourceware.org; Thu, 28 May 2015 15:13:07 -0700 Received: from build4-lucid-cs (147.34.91.1) by svr-orw-fem-02.mgc.mentorg.com (147.34.96.168) with Microsoft SMTP Server id 14.3.224.2; Thu, 28 May 2015 15:13:07 -0700 Received: by build4-lucid-cs (Postfix, from userid 1905) id 0AEA240F6C; Thu, 28 May 2015 15:13:06 -0700 (PDT) From: Don Breazeal To: Subject: [commit][PATCH 3/3] Disable exec-dependent follow vfork tests for remote Date: Thu, 28 May 2015 15:12:35 -0700 Message-ID: <1432851155-24563-3-git-send-email-donb@codesourcery.com> In-Reply-To: <1432851155-24563-1-git-send-email-donb@codesourcery.com> References: <1432851155-24563-1-git-send-email-donb@codesourcery.com> MIME-Version: 1.0 X-IsSubscribed: yes 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. --- 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 + + * gdb.base/foll-vfork.exp (main): Disable exec-dependent + tests for remote targets by checking is_target_gdbserver. + 2015-05-27 Doug Evans * 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