From patchwork Fri May 22 18:55:31 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Don Breazeal X-Patchwork-Id: 6896 Received: (qmail 94813 invoked by alias); 22 May 2015 18:56:04 -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 94773 invoked by uid 89); 22 May 2015 18:56:03 -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; Fri, 22 May 2015 18:56:02 +0000 Received: from svr-orw-fem-03.mgc.mentorg.com ([147.34.97.39]) by relay1.mentorg.com with esmtp id 1Yvs6x-0003jE-LI from Don_Breazeal@mentor.com for gdb-patches@sourceware.org; Fri, 22 May 2015 11:55:59 -0700 Received: from build4-lucid-cs (147.34.91.1) by svr-orw-fem-03.mgc.mentorg.com (147.34.97.39) with Microsoft SMTP Server id 14.3.224.2; Fri, 22 May 2015 11:55:59 -0700 Received: by build4-lucid-cs (Postfix, from userid 1905) id 3BB0A40E8F; Fri, 22 May 2015 11:55:59 -0700 (PDT) From: Don Breazeal To: Subject: [PATCH 3/3] Disable exec-dependent follow fork tests for remote Date: Fri, 22 May 2015 11:55:31 -0700 Message-ID: <1432320931-1550-4-git-send-email-donb@codesourcery.com> In-Reply-To: <1432320931-1550-1-git-send-email-donb@codesourcery.com> References: <1432320931-1550-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 gdbserver targets. We can re-enable these once the exec event support goes in. OK? --Don gdb/testsuite/ 2015-05-22 Don Breazeal * gdb.base/foll-vfork.exp (main): Disable exec-dependent tests for remote targets by checking is_target_gdbserver. --- gdb/testsuite/gdb.base/foll-vfork.exp | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/gdb/testsuite/gdb.base/foll-vfork.exp b/gdb/testsuite/gdb.base/foll-vfork.exp index 78c5cc8..26d7afd 100644 --- a/gdb/testsuite/gdb.base/foll-vfork.exp +++ b/gdb/testsuite/gdb.base/foll-vfork.exp @@ -524,18 +524,22 @@ 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 +if { ![target_is_gdbserver] } { + # 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 { + untested "vfork with exec: exec events not supported for remote" } # Switch to test the case of the child exiting. We can't use