From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7862) id ACA0F38515CA; Mon, 12 Sep 2022 12:18:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ACA0F38515CA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1662985093; bh=QIVB04paw0FFob8uCvZoEZWhn689CvlczyI4g4qVzjk=; h=From:To:Subject:Date:From; b=DjM94bqB3JenOu4be6jvHqLjHov2NHvJLjOVUqhxgms+AHwM3crZiC8jzCYgMfQfP /oYRoBLKvtWJH4cSSpS3XrhQ1aoIlUykY+F3KlcokMiFoqLtkgHTMr6Hbp8ldLb2wQ b/x7tqLq+Amwz00axew9POv0GlieL32g95gunXrI= 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] add xfails to gdb.base/complex-parts.exp when testing with clang X-Act-Checkin: binutils-gdb X-Git-Author: Bruno Larsen X-Git-Refname: refs/heads/master X-Git-Oldrev: 39801ed9697c027ae40bc65237d5212980fa48ae X-Git-Newrev: fbdc50d2c7ce12458aa925ea3dd8512f652929bd Message-Id: <20220912121813.ACA0F38515CA@sourceware.org> Date: Mon, 12 Sep 2022 12:18:13 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dfbdc50d2c7ce= 12458aa925ea3dd8512f652929bd commit fbdc50d2c7ce12458aa925ea3dd8512f652929bd Author: Bruno Larsen Date: Wed Jul 20 16:44:34 2022 -0300 add xfails to gdb.base/complex-parts.exp when testing with clang =20 clang doesn't add encoding to the name of complex variables, only says that the type name is complex, making the relevant tests fail. This patch adds the xfails to the tests that expect the variable name to include it. Diff: --- gdb/testsuite/gdb.base/complex-parts.exp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gdb/testsuite/gdb.base/complex-parts.exp b/gdb/testsuite/gdb.b= ase/complex-parts.exp index e67fd482268..7fa94c72cd4 100644 --- a/gdb/testsuite/gdb.base/complex-parts.exp +++ b/gdb/testsuite/gdb.base/complex-parts.exp @@ -30,8 +30,13 @@ gdb_test "p z1" " =3D 1.5 \\+ 4.5i" gdb_test "p z2" " =3D 2.5 \\+ -5.5i" gdb_test "p z3" " =3D 3.5 \\+ 6.5i" =20 +# The following 3 tests are broken for Clang. +# More info at https://github.com/llvm/llvm-project/issues/52996. +if {[test_compiler_info clang-*-*]} { setup_xfail *-*-* } gdb_test "ptype z1" " =3D complex double" +if {[test_compiler_info clang-*-*]} { setup_xfail *-*-* } gdb_test "ptype z2" " =3D complex float" +if {[test_compiler_info clang-*-*]} { setup_xfail *-*-* } gdb_test "ptype z3" " =3D complex long double" =20 with_test_prefix "double imaginary" {