From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7862) id 1A6A5383469A; Fri, 11 Nov 2022 09:17:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1A6A5383469A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1668158268; bh=SgfoW77QkO+GfKiYpPXpTAl+1Ozpns+qg/LCIkLCmhA=; h=From:To:Subject:Date:From; b=RtHKJ/9Cc1nh53RpiAPxUZQR/gadciu4ed1F2wjWFFP7+dWv91Zo3kvIKslDqwseB wyV6SNE0egDmEfKXxhhIz5t4d+kjL2OlblttlIgdhKDDdOtuYnXOhmbm/jBaAmyF/k ubkT6pBLrLlasxjQS/MjqUfCIr2EPft2E2So+mS0= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Bruno Larsen To: gdb-cvs@sourceware.org Subject: [binutils-gdb] gdb/testsuite: disable gdb.cp/call-method-register.exp when not using gcc X-Act-Checkin: binutils-gdb X-Git-Author: Bruno Larsen X-Git-Refname: refs/heads/master X-Git-Oldrev: 2604c0dc3b89dcf7114de4ce71b7556bf4bf6913 X-Git-Newrev: db2e277d1a840091f56185d94f9d39c6736d2556 Message-Id: <20221111091748.1A6A5383469A@sourceware.org> Date: Fri, 11 Nov 2022 09:17:48 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Ddb2e277d1a84= 0091f56185d94f9d39c6736d2556 commit db2e277d1a840091f56185d94f9d39c6736d2556 Author: Bruno Larsen Date: Tue Oct 4 19:02:31 2022 +0200 gdb/testsuite: disable gdb.cp/call-method-register.exp when not using g= cc =20 The test gdb.cp/call-method-register.exp assumes that the class will be placed on a register. However, this keyword has been deprecated since C++11, and Clang, for instance, does not feel the need to follow it. Since this test is not usable without this working, this commit marks this test as untested. =20 Approved-by: Tom Tromey Diff: --- gdb/testsuite/gdb.cp/call-method-register.exp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gdb/testsuite/gdb.cp/call-method-register.exp b/gdb/testsuite/= gdb.cp/call-method-register.exp index a1e6498d66c..a98b11e4c11 100644 --- a/gdb/testsuite/gdb.cp/call-method-register.exp +++ b/gdb/testsuite/gdb.cp/call-method-register.exp @@ -26,6 +26,11 @@ if {[prepare_for_testing "failed to prepare" $testfile $= srcfile {debug c++}]} { return -1 } =20 +if {![test_compiler_info gcc-*-* c++]} { + untested "test relies on a gcc extension" + return +} + proc test_call_register_class {} { global gdb_prompt