2011-12-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
authorEdjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
Fri, 30 Dec 2011 14:11:57 +0000 (14:11 +0000)
committerEdjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
Fri, 30 Dec 2011 14:11:57 +0000 (14:11 +0000)
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.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-finish-breakpoint.exp
gdb/testsuite/gdb.python/py-finish-breakpoint2.exp

index 4f49710..5f91bcb 100644 (file)
@@ -1,3 +1,10 @@
+2011-12-30  Edjunior Machado  <emachado@linux.vnet.ibm.com>
+
+       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.
+
 2011-12-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * gdb.python/py-finish-breakpoint.c (test_exec_exit): Change the
index fbdc5db..2c61783 100644 (file)
@@ -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" \
index 433d1e6..451cc90 100644 (file)
@@ -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