From 97d146f8056dcb9528fb707a93152e35dad0d8ae Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Thu, 7 Jul 2011 14:08:21 +0000 Subject: [PATCH] gdb/testsuite/ * gdb.java/jprint.exp (print a java.lang.String): xfail without system debug info. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.java/jprint.exp | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 276f60b9bf8..1f43ffe3c53 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-07-07 Jan Kratochvil + + * gdb.java/jprint.exp (print a java.lang.String): xfail without system + debug info. + 2011-07-06 Matt Rice * gdb.python/python.exp: Update filename paths. diff --git a/gdb/testsuite/gdb.java/jprint.exp b/gdb/testsuite/gdb.java/jprint.exp index 81d8ad19a5e..f6ae7ab48af 100644 --- a/gdb/testsuite/gdb.java/jprint.exp +++ b/gdb/testsuite/gdb.java/jprint.exp @@ -71,5 +71,14 @@ if [set_lang_java] then { setup_xfail *-*-* gcc/43260 gdb_test "print *jprint.props" " = .*" "print a java.util.Properties" - gdb_test "print jprint.hi" "= java.lang.String \"hi maude\"" "print a java.lang.String" + set test "print a java.lang.String" + gdb_test_multiple "print jprint.hi" $test { + -re " = java.lang.String \"hi maude\"\r\n$gdb_prompt $" { + pass $test + } + -re "There is no member named data\\.\r\n$gdb_prompt $" { + # GCJ system debug info for java.lang.String is not installed. + xfail $test + } + } } -- 2.30.2