summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/complex-parts.exp
diff options
context:
space:
mode:
authorBruno Larsen <blarsen@redhat.com>2022-07-20 16:44:34 -0300
committerBruno Larsen <blarsen@redhat.com>2022-09-12 14:09:44 +0200
commitfbdc50d2c7ce12458aa925ea3dd8512f652929bd (patch)
tree43b90066614822e151de569d863dddc89465c240 /gdb/testsuite/gdb.base/complex-parts.exp
parent39801ed9697c027ae40bc65237d5212980fa48ae (diff)
downloadbinutils-gdb-fbdc50d2c7ce12458aa925ea3dd8512f652929bd.tar.gz
add xfails to gdb.base/complex-parts.exp when testing with clang
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.
Diffstat (limited to 'gdb/testsuite/gdb.base/complex-parts.exp')
-rw-r--r--gdb/testsuite/gdb.base/complex-parts.exp5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/complex-parts.exp b/gdb/testsuite/gdb.base/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" " = 1.5 \\+ 4.5i"
gdb_test "p z2" " = 2.5 \\+ -5.5i"
gdb_test "p z3" " = 3.5 \\+ 6.5i"
+# 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" " = complex double"
+if {[test_compiler_info clang-*-*]} { setup_xfail *-*-* }
gdb_test "ptype z2" " = complex float"
+if {[test_compiler_info clang-*-*]} { setup_xfail *-*-* }
gdb_test "ptype z3" " = complex long double"
with_test_prefix "double imaginary" {