]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
small py-breakpoint.exp cleanups
authorJoel Brobecker <brobecker@gnat.com>
Tue, 22 Feb 2011 16:39:10 +0000 (16:39 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Tue, 22 Feb 2011 16:39:10 +0000 (16:39 +0000)
gdb/testsuite/ChangeLog:

        * gdb.python/py-breakpoint.exp: Remove unnecessary call to
        clean_restart.  Be a little stricter in the expected output
        for one of the tests.  Fix a typo in one of the comments.

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

index 46225c08b2d93e4ede21e37382d059e6ae90c62d..5d524d4c088216ee3085045216dbfc38f847d5d5 100644 (file)
@@ -1,3 +1,9 @@
+2011-02-22  Joel Brobecker  <brobecker@adacore.com>
+
+       * gdb.python/py-breakpoint.exp: Remove unnecessary call to
+       clean_restart.  Be a little stricter in the expected output
+       for one of the tests.  Fix a typo in one of the comments.
+
 2011-02-22  Joel Brobecker  <brobecker@adacore.com>
 
        * gdb.python/py-block.exp: Simplify using prepare_for_testing.
index 6b332848c024210531ab91ad7ec61191dc978d72..b9f8c4ad79cd0202547f1334de164d5ba47ee9d7 100644 (file)
@@ -28,9 +28,6 @@ if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile}] } {
     return -1
 }
 
-# Start with a fresh gdb.
-clean_restart ${testfile}
-
 # Skip all tests if Python scripting is not enabled.
 if { [skip_python_tests] } { continue }
 
@@ -64,7 +61,7 @@ gdb_test "python print blist\[1\].hit_count" "1" "Check breakpoint hit count"
 gdb_py_test_silent_cmd "python blist\[1\].ignore_count = 4" "Set breakpoint hit count" 0
 gdb_continue_to_breakpoint "Break at multiply."
 gdb_test "python print blist\[1\].hit_count" "6" "Check breakpoint hit count"
-gdb_test "print result" "545" "Check expected variable result after 6 iterations"
+gdb_test "print result" " = 545" "Check expected variable result after 6 iterations"
 
 # Test breakpoint is enabled and disabled correctly..
 gdb_breakpoint [gdb_get_line_number "Break at add."]
@@ -148,7 +145,7 @@ if ![runto_main] then {
     return 0
 }
 
-# Test invisible breakpooints.
+# Test invisible breakpoints.
 delete_breakpoints
 set ibp_location [gdb_get_line_number "Break at multiply."]
 gdb_py_test_silent_cmd  "python ibp = gdb.Breakpoint(\"$ibp_location\", internal=False)" "Set invisible breakpoint" 0