From: Jan Kratochvil Date: Wed, 4 Jan 2012 17:55:41 +0000 (+0000) Subject: gdb/testsuite/ X-Git-Tag: gdb_7_4-2012-01-24-release~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81c157457d188291992f18f38ba834e233014d0a;p=thirdparty%2Fbinutils-gdb.git gdb/testsuite/ * gdb.python/py-finish-breakpoint.exp: Add `.' prefix for ppc64. * gdb.python/py-finish-breakpoint2.exp: Skip testcase if python support is not enabled. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index e5d8868ba07..47b452fe2f7 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2012-01-04 Edjunior Machado + + * gdb.python/py-finish-breakpoint.exp: Add `.' prefix for ppc64. + * gdb.python/py-finish-breakpoint2.exp: Skip testcase if python support + is not enabled. + 2012-01-04 Jan Kratochvil * gdb.python/py-finish-breakpoint.c (test_exec_exit): Change the diff --git a/gdb/testsuite/gdb.python/py-finish-breakpoint.exp b/gdb/testsuite/gdb.python/py-finish-breakpoint.exp index fbdc5db00e0..2c617839f76 100644 --- a/gdb/testsuite/gdb.python/py-finish-breakpoint.exp +++ b/gdb/testsuite/gdb.python/py-finish-breakpoint.exp @@ -118,7 +118,8 @@ if ![runto_main] then { gdb_test "print do_nothing" "no debug info.*" "ensure that shared lib has no debug info" gdb_breakpoint "do_nothing" {temporary} -gdb_test "continue" "Temporary breakpoint .*in do_nothing.*" "continue to do_nothing" +gdb_test "continue" "Temporary breakpoint .*in \\.?do_nothing.*" \ + "continue to do_nothing" gdb_test "python finishBP = SimpleFinishBreakpoint(gdb.newest_frame())" \ "SimpleFinishBreakpoint init" \ diff --git a/gdb/testsuite/gdb.python/py-finish-breakpoint2.exp b/gdb/testsuite/gdb.python/py-finish-breakpoint2.exp index 433d1e63deb..451cc903222 100644 --- a/gdb/testsuite/gdb.python/py-finish-breakpoint2.exp +++ b/gdb/testsuite/gdb.python/py-finish-breakpoint2.exp @@ -38,6 +38,9 @@ gdb_start gdb_reinitialize_dir $srcdir/$subdir gdb_load ${binfile} +# Skip all tests if Python scripting is not enabled. +if { [skip_python_tests] } { continue } + if ![runto_main] then { fail "Cannot run to main." return 0