From: Tom de Vries Date: Fri, 11 Sep 2020 13:56:44 +0000 (+0200) Subject: [gdb/testsuite] Kfail gdb.cp/ambiguous.exp FAILs for PR26602 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ad570dd76c3578bc5aaae0c2029ff43fd40ef9cd;p=binutils-gdb.git [gdb/testsuite] Kfail gdb.cp/ambiguous.exp FAILs for PR26602 Kfail these FAILs as caused by PR exp/26602: ... FAIL: gdb.cp/ambiguous.exp: print x.x FAIL: gdb.cp/ambiguous.exp: print n.x FAIL: gdb.cp/ambiguous.exp: print j.x FAIL: gdb.cp/ambiguous.exp: print jva1.x FAIL: gdb.cp/ambiguous.exp: print jva2.x FAIL: gdb.cp/ambiguous.exp: print (A1)j FAIL: gdb.cp/ambiguous.exp: print (A1)jva1 ... Tested on x86_64-linux. gdb/testsuite/ChangeLog: 2020-09-11 Tom de Vries PR exp/26602 * gdb.cp/ambiguous.exp: Add KFAILs for PR26602. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 227b9526417..6b2055daf31 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2020-09-11 Tom de Vries + + PR exp/26602 + * gdb.cp/ambiguous.exp: Add KFAILs for PR26602. + 2020-09-11 Tankut Baris Aktemur * gdb.base/bp-cmds-execution-x-script.exp: Remove a stale comment. diff --git a/gdb/testsuite/gdb.cp/ambiguous.exp b/gdb/testsuite/gdb.cp/ambiguous.exp index 17fb29f5350..4d01c108f30 100644 --- a/gdb/testsuite/gdb.cp/ambiguous.exp +++ b/gdb/testsuite/gdb.cp/ambiguous.exp @@ -74,6 +74,7 @@ send_gdb "break marker1\n" ; gdb_expect -re ".*$gdb_prompt $" # right times. # X is derived from A1 and A2; both A1 and A2 have a member 'x' +setup_kfail gdb/26602 *-*-* send_gdb "print x.x\n" gdb_expect { -re "warning: x ambiguous; using X::A2::x. Use a cast to disambiguate.\r\n\\$\[0-9\]* = \[-\]*\[0-9\]*\r\n$gdb_prompt $" { @@ -89,6 +90,7 @@ gdb_expect { # N is derived from A1 and A2, but not immediately -- two steps # up in the hierarchy. Both A1 and A2 have a member 'x'. +setup_kfail gdb/26602 *-*-* send_gdb "print n.x\n" gdb_expect { -re "warning: x ambiguous; using N::M::A2::x. Use a cast to disambiguate.\r\n\\$\[0-9\]* = \[-\]*\[0-9\]*\r\n$gdb_prompt $" { @@ -102,6 +104,7 @@ gdb_expect { } # J is derived from A1 twice. A1 has a member x. +setup_kfail gdb/26602 *-*-* send_gdb "print j.x\n" gdb_expect { -re "warning: x ambiguous; using J::L::A1::x. Use a cast to disambiguate.\r\n\\$\[0-9\]* = \[-\]*\[0-9\]*\r\n$gdb_prompt $" { @@ -129,6 +132,7 @@ gdb_expect { # JVA1 is derived from A1; A1 occurs as a virtual base in two # ancestors, and as a non-virtual immediate base. Ambiguity must # be reported. +setup_kfail gdb/26602 *-*-* send_gdb "print jva1.x\n" gdb_expect { -re "warning: x ambiguous; using JVA1::A1::x. Use a cast to disambiguate.\r\n\\$\[0-9\]* = \[-\]*\[0-9\]*\r\n$gdb_prompt $" { @@ -144,6 +148,7 @@ gdb_expect { # JVA2 is derived from A1 & A2; A1 occurs as a virtual base in two # ancestors, and A2 is a non-virtual immediate base. Ambiguity must # be reported as A1 and A2 both have a member 'x'. +setup_kfail gdb/26602 *-*-* send_gdb "print jva2.x\n" gdb_expect { -re "warning: x ambiguous; using JVA2::A2::x. Use a cast to disambiguate.\r\n\\$\[0-9\]* = \[-\]*\[0-9\]*\r\n$gdb_prompt $" { @@ -173,6 +178,7 @@ gdb_expect { # J is derived from A1 twice; report ambiguity if a J is # cast to an A1. +setup_kfail gdb/26602 *-*-* send_gdb "print (A1)j\n" gdb_expect { -re "warning: A1 ambiguous; using J::L::A1. Use a cast to disambiguate.\r\n\\$\[0-9\]* = \{x = \[-\]*\[0-9\]*, y = \[-\]*\[0-9\]*\}\r\n$gdb_prompt $" { @@ -199,6 +205,7 @@ gdb_expect { # JVA1 is derived from A1; A1 is a virtual base and also a # non-virtual base. Must report ambiguity if a JVA1 is cast to an A1. +setup_kfail gdb/26602 *-*-* send_gdb "print (A1)jva1\n" gdb_expect { -re "warning: A1 ambiguous; using JVA1::A1. Use a cast to disambiguate.\r\n\\$\[0-9\]* = \{x = \[-\]*\[0-9\]*, y = \[-\]*\[0-9\]*\}\r\n$gdb_prompt $" {