Fix and XFAIL test due to GCC PR55641, passes with clang
authorDavid Blaikie <dblaikie@gmail.com>
Sun, 13 Apr 2014 07:38:47 +0000 (00:38 -0700)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 24 Apr 2014 20:22:10 +0000 (13:22 -0700)
gdb/testsuite/
* gdb.python/lib-types.exp: Fix test and xfail under gcc due to gcc/55641.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/lib-types.exp

index a910f55..3c73010 100644 (file)
@@ -1,5 +1,9 @@
 2014-04-24  David Blaikie  <dblaikie@gmail.com>
 
+       * gdb.python/lib-types.exp: Fix test and xfail under gcc due to gcc/55641.
+
+2014-04-24  David Blaikie  <dblaikie@gmail.com>
+
        * gdb.cp/cpexprs.cc: Move braces to the same line as the start
        of the function to work across GCC and Clang.
        * gdb.cp/cpexprs.exp: Account for GCC/Clang difference in vtable
index 8b9ff34..fa27e60 100644 (file)
@@ -103,7 +103,8 @@ gdb_test_multiple "python print (str (basic_type_typedef_const_typedef_class1_ob
 # test nested typedef/reference stripping
 gdb_test_no_output "python typedef_const_typedef_class1_ref_obj = gdb.parse_and_eval ('typedef_const_typedef_class1_ref_obj')"
 gdb_test_no_output "python basic_type_typedef_const_typedef_class1_ref_obj = gdb.types.get_basic_type (typedef_const_typedef_class1_ref_obj.type)"
-gdb_test "python print (str (typedef_const_typedef_class1_ref_obj.type))" "const typedef_const_typedef_class1_ref"
+if {[test_compiler_info {gcc-*-*}]} { setup_xfail gcc/55641 *-*-* }
+gdb_test "python print (str (typedef_const_typedef_class1_ref_obj.type))" "\[\r\n\]+typedef_const_typedef_class1_ref"
 set test "nested typedef/ref stripping"
 gdb_test_multiple "python print (str (basic_type_typedef_const_typedef_class1_ref_obj))" $test {
     -re "\[\r\n\]+class1\[\r\n\]+$gdb_prompt $" {