From patchwork Sun Jul 17 14:30:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kratochvil X-Patchwork-Id: 13830 Received: (qmail 93621 invoked by alias); 17 Jul 2016 14:30:32 -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 93401 invoked by uid 89); 17 Jul 2016 14:30:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=2016-07-17 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Sun, 17 Jul 2016 14:30:08 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D24B18535A for ; Sun, 17 Jul 2016 14:30:06 +0000 (UTC) Received: from host1.jankratochvil.net (ovpn-204-80.brq.redhat.com [10.40.204.80]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u6HEU3N7004351 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Sun, 17 Jul 2016 10:30:06 -0400 Date: Sun, 17 Jul 2016 16:30:03 +0200 From: Jan Kratochvil To: gdb-patches@sourceware.org Subject: [testsuite patch] Skip py-unwind.exp on x86_64 -m32 Message-ID: <20160717143003.GA12147@host1.jankratochvil.net> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.6.1 (2016-04-27) X-IsSubscribed: yes Hi, (gdb) source /home/jkratoch/redhat/gdb-clean/gdb/testsuite/outputs/gdb.python/py-unwind/py-unwind.py^M Python script imported^M Python Exception Bad register: ^M (gdb) FAIL: gdb.python/py-unwind.exp: import python scripts class TestUnwinder(Unwinder): AMD64_RBP = 6 AMD64_RSP = 7 AMD64_RIP = 16 This was already discussed here: Re: [testsuite patch] Fix gdb.btrace/tailcall-only.exp errors on x86_64-m32 https://sourceware.org/ml/gdb-patches/2016-04/msg00222.html Message-ID: <20160411195537.GA22299@host1.jankratochvil.net> but no GDB maintainer gave an answer how to run testsuite in cross-arch mode. Jan gdb/testsuite/ChangeLog 2016-07-17 Jan Kratochvil * gdb.python/py-unwind.exp: Test also ![is_lp64_target]. diff --git a/gdb/testsuite/gdb.python/py-unwind.exp b/gdb/testsuite/gdb.python/py-unwind.exp index 5172a03..e31a472 100644 --- a/gdb/testsuite/gdb.python/py-unwind.exp +++ b/gdb/testsuite/gdb.python/py-unwind.exp @@ -28,7 +28,7 @@ if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile}] } { if { [skip_python_tests] } { continue } # This test runs on a specific platform. -if { ! [istarget x86_64-*]} { continue } +if { ![istarget x86_64-*-* ] || ![is_lp64_target] } { continue } # The following tests require execution.