gdb/testsuite: resolve remaining duplicate test names in gdb.python/*.exp
authorAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 8 Mar 2021 18:34:08 +0000 (18:34 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Fri, 12 Mar 2021 12:18:34 +0000 (12:18 +0000)
This commit resolves the remaining duplicate test names in the
gdb.python/ directory, there's 1 duplicate per test script.  In each
case I have just extended some test names to make them more
descriptive.

gdb/testsuite/ChangeLog:

* gdb.python/py-bad-printers.exp: Extend test names to make them
unique.
* gdb.python/py-events.exp: Likewise.
* gdb.python/py-finish-breakpoint2.exp: Likewise.
* gdb.python/py-frame-inline.exp: Likewise.
* gdb.python/py-frame.exp: Likewise.
* gdb.python/py-infthread.exp: Likewise.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-bad-printers.exp
gdb/testsuite/gdb.python/py-events.exp
gdb/testsuite/gdb.python/py-finish-breakpoint2.exp
gdb/testsuite/gdb.python/py-frame-inline.exp
gdb/testsuite/gdb.python/py-frame.exp
gdb/testsuite/gdb.python/py-infthread.exp

index 9ca0a1288f9f555dd2f8054008670577d06caa91..6eddfc16c39fbd8c072424a5d8bca01a4ab30c99 100644 (file)
@@ -1,3 +1,13 @@
+2021-03-12  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * gdb.python/py-bad-printers.exp: Extend test names to make them
+       unique.
+       * gdb.python/py-events.exp: Likewise.
+       * gdb.python/py-finish-breakpoint2.exp: Likewise.
+       * gdb.python/py-frame-inline.exp: Likewise.
+       * gdb.python/py-frame.exp: Likewise.
+       * gdb.python/py-infthread.exp: Likewise.
+
 2021-03-12  Andrew Burgess  <andrew.burgess@embecosm.com>
 
        * gdb.python/py-value-cc.exp: Remove a duplicate test.
index d838369df8b77ecd793e026442cdaf1651b70d63..708f0e0c5c987fbe03ce46897d4fdc9d69c91a67 100644 (file)
@@ -44,10 +44,13 @@ gdb_test "enable pretty-printer global bad-printers;container1" \
     "printers enabled"
 gdb_test "disable pretty-printer global bad-printers;container2" \
     "printers enabled"
-gdb_test "print c" "Result of children iterator not a tuple of two elements.*"
+gdb_test "print c" \
+    "Result of children iterator not a tuple of two elements.*" \
+    "print c, children method doesn't return a tuple"
 
 gdb_test "enable pretty-printer global bad-printers;container2" \
     "printers enabled"
 gdb_test "disable pretty-printer global bad-printers;container1" \
     "printers enabled"
-gdb_test "print c" "Bad result from children iterator.*"
+gdb_test "print c" "Bad result from children iterator.*" \
+    "print c, children method returns a malformed tuple"
index f1ea3d1de8cafae7c00043620b4f96ebe7acc201..e89cd8b021b9445265dfbb4321f5479611af7da9 100644 (file)
@@ -234,4 +234,4 @@ gdb_test_no_output "set variable \$x = 32" "do something"
 gdb_test "python print(count)" 2 "check for before_prompt event"
 
 gdb_test_no_output "xxz" "run a canned sequence"
-gdb_test "python print(count)" 4 "check for before_prompt event"
+gdb_test "python print(count)" 4 "check for before_prompt event again"
index 10c4b6e81b85a3c195317b554a69a152ea9fc68f..58e086ad3b4007b108d1ea43ee43872b390b58cc 100644 (file)
@@ -48,10 +48,12 @@ gdb_breakpoint "throw_exception_1"
 gdb_test "continue" "Breakpoint .*throw_exception_1.*" "run to exception 1"
 
 gdb_test "python print (len(gdb.breakpoints()))" "3" "check BP count"
-gdb_test "python ExceptionFinishBreakpoint(gdb.newest_frame())" "init ExceptionFinishBreakpoint" "set FinishBP after the exception"
+gdb_test "python ExceptionFinishBreakpoint(gdb.newest_frame())" \
+    "init ExceptionFinishBreakpoint" "set FinishBP after the exception"
 gdb_test "continue" ".*stopped at ExceptionFinishBreakpoint.*" "check FinishBreakpoint in catch()"
 gdb_test "python print (len(gdb.breakpoints()))" "3" "check finish BP removal"
 
 gdb_test "continue" ".*Breakpoint.* throw_exception_1.*" "continue to second exception"
-gdb_test "python ExceptionFinishBreakpoint(gdb.newest_frame())" "init ExceptionFinishBreakpoint" "set FinishBP after the exception"
+gdb_test "python ExceptionFinishBreakpoint(gdb.newest_frame())" \
+    "init ExceptionFinishBreakpoint" "set FinishBP after the exception again"
 gdb_test "continue" ".*exception did not finish.*" "FinishBreakpoint with exception thrown not caught"
index 9fb3016a78121c7ff94d376c5432031918ea8fc1..211c930ce506f8fbe20218f8b0e3effb3dcfce99 100644 (file)
@@ -48,7 +48,7 @@ gdb_test "python print (gdb.selected_frame().read_var('l'))" "\r\n42"
 # the frame cache is flushed somehow after setting the limit, to force
 # frame id recomputation.
 gdb_test_no_output "set backtrace limit 1"
-gdb_continue_to_breakpoint "Block break here."
+gdb_continue_to_breakpoint "Block break here again."
 
 gdb_test "python print (gdb.newest_frame())" ".*"
 
index e092e279ff706a746def86c42641b2aa910f555b..a6a5c0de726341f56349e436999a0ba8f06efd92 100644 (file)
@@ -83,7 +83,8 @@ gdb_test "python print ('result = %s' % (f0 != f0))" " = False" "test inequality
 gdb_test "python print ('result = %s' % f0.is_valid ())" " = True" "test Frame.is_valid"
 gdb_test "python print ('result = %s' % f0.name ())" " = f2" "test Frame.name"
 gdb_test "python print ('result = %s' % (f0.type () == gdb.NORMAL_FRAME))" " = True" "test Frame.type"
-gdb_test "python print ('result = %s' % (f0.unwind_stop_reason () == gdb.FRAME_UNWIND_NO_REASON))" " = True" "test Frame.type"
+gdb_test "python print ('result = %s' % (f0.unwind_stop_reason () == gdb.FRAME_UNWIND_NO_REASON))" \
+    " = True" "test Frame.unwind_stop_reason"
 gdb_test "python print ('result = %s' % gdb.frame_stop_reason_string (gdb.FRAME_UNWIND_INNER_ID))" " = previous frame inner to this frame \\(corrupt stack\\?\\)" "test gdb.frame_stop_reason_string"
 gdb_test "python print ('result = %s' % f0.pc ())" " = \[0-9\]+" "test Frame.pc"
 gdb_test "python print ('result = %s' % (f0.older () == f1))" " = True" "test Frame.older"
index 6f81a1c932f41f7332c80fb30449943903b6fbc0..aa0b802a11e96191be6740cfec04747404aea44d 100644 (file)
@@ -89,4 +89,5 @@ gdb_test "python print ('result = %s' % t0.is_exited ())" " = False" "test Infer
 
 gdb_test "python print ('result = %s' % t0.is_valid ())" " = True" "test InferiorThread.is_valid"
 gdb_test_no_output "kill inferior 1" "kill inferior 1"
-gdb_test "python print ('result = %s' % t0.is_valid ())" " = False" "test InferiorThread.is_valid"
+gdb_test "python print ('result = %s' % t0.is_valid ())" " = False" \
+    "test InferiorThread.is_valid after thread has been killed"
This page took 0.037226 seconds and 4 git commands to generate.