[patch] Add support for imported declaration and correct search order

Sami Wagiaalla swagiaal@redhat.com
Mon Mar 29 17:23:00 GMT 2010


On 03/29/2010 12:33 PM, Tom Tromey wrote:
>>>>>> "Sami" == Sami Wagiaalla<swagiaal@redhat.com>  writes:
> 
> Sami>  +if { [test_compiler_info {gcc-[0-3]-*}] ||
> Sami>  +     [test_compiler_info {gcc-4-[0-3]-*}]} { setup_xfail *-*-* }
> 
> Split the second line here after the "{" and then again before the "}".
> 
> Sami>  +if { [test_compiler_info {gcc-[0-3]-*}] ||
> Sami>  +     [test_compiler_info {gcc-4-[0-3]-*}]} { setup_xfail *-*-* }
> 
> Here too.
> 
> Ok with this change.
> 

Will commit this:

2010-03-29  Sami Wagiaalla  <swagiaal@redhat.com>

	* gdb.cp/nsusing.exp: Marked imported declaration test as xfail with
	gcc < 4.4.
	* gdb.cp/shadow.exp: Ditto.

diff --git a/gdb/testsuite/gdb.cp/nsusing.exp b/gdb/testsuite/gdb.cp/nsusing.exp
index b060ee2..718b4b8 100644
--- a/gdb/testsuite/gdb.cp/nsusing.exp
+++ b/gdb/testsuite/gdb.cp/nsusing.exp
@@ -206,5 +206,10 @@ if ![runto_main] then {
 gdb_breakpoint [gdb_get_line_number "marker10 stop"]
 gdb_continue_to_breakpoint "marker10 stop"
 
+if { [test_compiler_info {gcc-[0-3]-*}] ||
+     [test_compiler_info {gcc-4-[0-3]-*}]} {
+    setup_xfail *-*-* 
+}
+
 # Assert that M::x is printed and not N::x
 gdb_test "print x" "= 911" "print x (from M::x)"
diff --git a/gdb/testsuite/gdb.cp/shadow.exp b/gdb/testsuite/gdb.cp/shadow.exp
index 40c35a4..945cf99 100644
--- a/gdb/testsuite/gdb.cp/shadow.exp
+++ b/gdb/testsuite/gdb.cp/shadow.exp
@@ -31,6 +31,10 @@ if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
     return -1
 }
 
+if [get_compiler_info ${binfile}] {
+    return -1
+}
+
 # Get things started.
 
 gdb_exit
@@ -85,4 +89,9 @@ gdb_test "print x" "= 55" "Print local x not namespace x"
 gdb_breakpoint [gdb_get_line_number "marker5"]
 gdb_continue_to_breakpoint "marker5"
 
+if { [test_compiler_info {gcc-[0-3]-*}] ||
+     [test_compiler_info {gcc-4-[0-3]-*}]} {
+    setup_xfail *-*-*
+}
+
 gdb_test "print x" "= 11" "Print imported namespace x"
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: xfail.patch
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20100329/8770b8d7/attachment.ksh>


More information about the Gdb-patches mailing list