diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-06-30 15:58:47 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-06-30 15:58:47 +0000 |
commit | 0a600c36f72abbc5455ca6d898ff8ddfbbad7884 (patch) | |
tree | 41d14870a46d7b8eb05f3d73c57cdf7d649e37b5 /gdb | |
parent | b2286c10fe98d0bc1e4e207d0966cbd9e3bba58a (diff) | |
download | gdb-0a600c36f72abbc5455ca6d898ff8ddfbbad7884.zip gdb-0a600c36f72abbc5455ca6d898ff8ddfbbad7884.tar.gz gdb-0a600c36f72abbc5455ca6d898ff8ddfbbad7884.tar.bz2 |
gdb/testsuite/
* gdb.cp/namespace.exp (print C::OtherFileClass::cOtherFileClassVar)
(print ::C::OtherFileClass::cOtherFileClassVar): Remove KFAIL for
c++/11702.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/testsuite/gdb.cp/namespace.exp | 23 |
2 files changed, 8 insertions, 21 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 083dcf9..34c9542 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2010-06-30 Jan Kratochvil <jan.kratochvil@redhat.com> + + * gdb.cp/namespace.exp (print C::OtherFileClass::cOtherFileClassVar) + (print ::C::OtherFileClass::cOtherFileClassVar): Remove KFAIL for + c++/11702. + 2010-06-29 Jan Kratochvil <jan.kratochvil@redhat.com> Doug Evans <dje@google.com> diff --git a/gdb/testsuite/gdb.cp/namespace.exp b/gdb/testsuite/gdb.cp/namespace.exp index 1eae62f..0dcd398 100644 --- a/gdb/testsuite/gdb.cp/namespace.exp +++ b/gdb/testsuite/gdb.cp/namespace.exp @@ -186,17 +186,7 @@ if {[test_compiler_info {gcc-[0-3]-*}] setup_xfail *-*-* } gdb_test "whatis ::C::OtherFileClass::cOtherFileClassType" "type = short" - -set test "print C::OtherFileClass::cOtherFileClassVar" -gdb_test_multiple $test $test { - -re "\\$\[0-9\].* = 318\r\n$gdb_prompt $" { - pass $test - } - -re "static field cOtherFileClassVar has been optimized out\r\n$gdb_prompt $" { - setup_kfail "c++/11702" "*-*-*" - fail $test - } -} +gdb_test "print C::OtherFileClass::cOtherFileClassVar" " = 318" # FSF GCC <=4.4 creates unqualified DIE "cOtherFileClassVar" ignoring the # namespace the same way older GDB did. @@ -206,16 +196,7 @@ gdb_test_multiple $test $test { -re "No symbol \"cOtherFileClassVar\" in current context\\.\r\n$gdb_prompt $" { pass $test - gdb_test_multiple $test2 $test2 { - -re "\\$\[0-9\].* = 318\r\n$gdb_prompt $" { - pass $test2 - } - -re "static field cOtherFileClassVar has been optimized out\r\n$gdb_prompt $" { - setup_kfail "c++/11702" "*-*-*" - fail $test2 - } - } - + gdb_test $test2 " = 318" } -re "\\$\[0-9\].* = 318\r\n$gdb_prompt $" { if {[test_compiler_info {gcc-[0-3]-*}] |