[PATCH 03/12] gdb/testsuite: Remove duplicates from gdb.mi/mi-watch.exp

Lancelot SIX lsix@lancelotsix.com
Fri Nov 26 23:00:29 GMT 2021


When I run the testsuite, I have:

    Running .../gdb/testsuite/gdb.mi/mi-watch.exp ...
    DUPLICATE: gdb.mi/mi-watch.exp: mi-mode=main: wp-type=sw: watchpoint trigger
    DUPLICATE: gdb.mi/mi-watch.exp: mi-mode=main: wp-type=hw: watchpoint trigger
    DUPLICATE: gdb.mi/mi-watch.exp: mi-mode=separate: wp-type=sw: watchpoint trigger
    DUPLICATE: gdb.mi/mi-watch.exp: mi-mode=separate: wp-type=hw: watchpoint trigger

Fix by adjusting the duplicated test name.

Tested on x86_64-linux.
---
 gdb/testsuite/gdb.mi/mi-watch.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/testsuite/gdb.mi/mi-watch.exp b/gdb/testsuite/gdb.mi/mi-watch.exp
index eb037bc9966..b894fbc935e 100644
--- a/gdb/testsuite/gdb.mi/mi-watch.exp
+++ b/gdb/testsuite/gdb.mi/mi-watch.exp
@@ -131,7 +131,7 @@ proc test_watchpoint_triggering {} {
     mi_execute_to "exec-continue" "watchpoint-scope" "callee3" ".*" \
         ".*basics.c" $line_callee3_close_brace \
         {"" "wpnum=\"2\""} \
-        "watchpoint trigger"
+        "watchpoint trigger, two"
 }
 
 proc test_watchpoint_all {mi_mode type} {
-- 
2.33.1



More information about the Gdb-patches mailing list