From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27438 invoked by alias); 12 Oct 2012 08:57:52 -0000 Received: (qmail 27420 invoked by uid 22791); 12 Oct 2012 08:57:49 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_SPAMHAUS_DROP,RCVD_IN_DNSWL_LOW,TW_TX X-Spam-Check-By: sourceware.org Received: from service87.mimecast.com (HELO service87.mimecast.com) (91.220.42.44) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 12 Oct 2012 08:57:45 +0000 Received: from cam-owa1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.21]) by service87.mimecast.com; Fri, 12 Oct 2012 09:57:41 +0100 Received: from [10.1.69.62] ([10.1.255.212]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.0); Fri, 12 Oct 2012 09:57:39 +0100 Message-ID: <5077DB83.8060504@arm.com> Date: Fri, 12 Oct 2012 08:57:00 -0000 From: Yufeng Zhang User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: "gdb-patches@sourceware.org" Subject: [PATCH] add skip_shlib_tests guard to tests that require shared lib support X-MC-Unique: 112101209574103601 Content-Type: multipart/mixed; boundary="------------080207050906000402070808" X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-10/txt/msg00194.txt.bz2 This is a multi-part message in MIME format. --------------080207050906000402070808 Content-Type: text/plain; charset=WINDOWS-1252; format=flowed Content-Transfer-Encoding: quoted-printable Content-length: 374 Hi, This patch adds checks to 3 gdb tests to skip the testing if=20 skip_shlib_tests returns 1. Is it OK to commit? Thanks, Yufeng testsuite/ChangeLog 2012-10-12 Yufeng Zhang * gdb.base/ctxobj.exp: Skip if skip_shlib_tests returns 1. * gdb.base/print-file-var.exp: Likewise. * gdb.base/type-opaque.exp: Likewise.= --------------080207050906000402070808 Content-Type: text/x-patch; name=skip-shared-lib-tests.patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="skip-shared-lib-tests.patch" Content-length: 1562 diff --git a/gdb/testsuite/gdb.base/ctxobj.exp b/gdb/testsuite/gdb.base/ctx= obj.exp index b41ed38..529b684 100644 --- a/gdb/testsuite/gdb.base/ctxobj.exp +++ b/gdb/testsuite/gdb.base/ctxobj.exp @@ -13,6 +13,11 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . */ =20 +if {[skip_shlib_tests]} { + untested ctxobj.exp + return -1 +} + set executable ctxobj-m =20 # The sources used to build two shared libraries (SO). We use the exact diff --git a/gdb/testsuite/gdb.base/print-file-var.exp b/gdb/testsuite/gdb.= base/print-file-var.exp index 994abc4..ccde933 100644 --- a/gdb/testsuite/gdb.base/print-file-var.exp +++ b/gdb/testsuite/gdb.base/print-file-var.exp @@ -13,6 +13,11 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . */ =20 +if {[skip_shlib_tests]} { + untested print-file-var.exp + return -1 +} + set executable print-file-var-main =20 set lib1 "print-file-var-lib1" diff --git a/gdb/testsuite/gdb.base/type-opaque.exp b/gdb/testsuite/gdb.bas= e/type-opaque.exp index f91c24b..75b1db0 100644 --- a/gdb/testsuite/gdb.base/type-opaque.exp +++ b/gdb/testsuite/gdb.base/type-opaque.exp @@ -15,6 +15,11 @@ =20 # Test resolving of an opaque type from the loaded shared library. =20 +if {[skip_shlib_tests]} { + untested type-opaque.exp + return -1 +} + set testfile type-opaque-main set libfile type-opaque-lib set srcfile ${testfile}.c= --------------080207050906000402070808--