[commit] testsuite: gdb.cp/templates.exp gcc-4.7 new PR 51668 XFAIL

Jan Kratochvil jan.kratochvil@redhat.com
Fri Dec 23 19:53:00 GMT 2011


Hi,

filed:
	class DW_AT_name does not match method's linkage name prefix (char)1 vs. '\001'
	http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51668
	PASS: gcc (GCC) 4.6.3 20111222 (prerelease)
	FAIL: gcc (GCC) 4.7.0 20111222 (experimental)

and XFAILed it in the testsuite.  Hopefully it gets fixed in GCC instead of
more workarounds in GDB.

Checked in.


Thanks,
Jan


http://sourceware.org/ml/gdb-cvs/2011-12/msg00233.html

--- src/gdb/testsuite/ChangeLog	2011/12/23 17:06:15	1.3000
+++ src/gdb/testsuite/ChangeLog	2011/12/23 18:01:25	1.3001
@@ -1,3 +1,9 @@
+2011-12-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	* gdb.cp/templates.exp (test_template_typedef): Import gdb_prompt.
+	(print destructor of template typedef): Extend it for gcc/51668 XFAIL.
+	(verify GCC PR debug/51668): New test.
+
 2011-12-23  Kevin Pouget  <kevin.pouget@st.com>
 
 	Introduce gdb.FinishBreakpoint in Python.
--- src/gdb/testsuite/gdb.cp/templates.exp	2011/12/23 14:49:54	1.31
+++ src/gdb/testsuite/gdb.cp/templates.exp	2011/12/23 18:01:26	1.32
@@ -202,12 +202,32 @@
 }
 
 proc test_template_typedef {} {
+    global gdb_prompt
 
     gdb_test "print intBazOne::baz" ".*baz\\(int, int\\)>" \
 	"print method of template typedef"
 
-    gdb_test "print intBazOne::~Baz" ".*~Baz(\\(\\))?>" \
-	"print destructor of template typedef"
+    set test "print destructor of template typedef"
+    gdb_test_multiple "print intBazOne::~Baz" $test {
+	-re "~Baz(\\(\\))?>\r\n$gdb_prompt $" {
+	    pass $test
+	}
+	-re "There is no field named ~Baz\r\n$gdb_prompt $" {
+	    set test2 "verify GCC PR debug/51668"
+	    gdb_test_multiple "whatis intBazOne" $test2 {
+		-re "type = Baz<int, \\(char\\)'\\\\001'>\r\n$gdb_prompt $" {
+		    setup_xfail gcc/51668 "*-*-*"
+		    xfail $test
+		    pass $test2
+		}
+		-re "\r\n$gdb_prompt $" {
+		    # Some unexpected response.
+		    fail $test
+		    fail $test2
+		}
+	    }
+	}
+    }
 }
 
 proc test_template_args {} {



More information about the Gdb-patches mailing list