diff options
author | Tom de Vries <tdevries@suse.de> | 2020-09-11 15:56:44 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2020-09-11 15:56:44 +0200 |
commit | ad570dd76c3578bc5aaae0c2029ff43fd40ef9cd (patch) | |
tree | 2ee648fcd940c1a758913ea0b8d209d3e869aa38 /gdb | |
parent | 8d58ed37f168b3ae927cbb2967089c85d10ef6f2 (diff) | |
download | gdb-ad570dd76c3578bc5aaae0c2029ff43fd40ef9cd.zip gdb-ad570dd76c3578bc5aaae0c2029ff43fd40ef9cd.tar.gz gdb-ad570dd76c3578bc5aaae0c2029ff43fd40ef9cd.tar.bz2 |
[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 <tdevries@suse.de>
PR exp/26602
* gdb.cp/ambiguous.exp: Add KFAILs for PR26602.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.cp/ambiguous.exp | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 227b952..6b2055d 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2020-09-11 Tom de Vries <tdevries@suse.de> + + PR exp/26602 + * gdb.cp/ambiguous.exp: Add KFAILs for PR26602. + 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> * 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 17fb29f..4d01c10 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 $" { |