[binutils-gdb] gdb/testsuite: fix gdb.rocm/interrupt-twice

Lancelot SIX via Gdb-cvs <[email protected]> Fri, 3 Jul 2026 10:56:22 +0000 (GMT)
Newsgroups gmane.comp.gdb.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=674d984dd022d59d062787d121d2becdc9808dab

commit 674d984dd022d59d062787d121d2becdc9808dab
Author: Lancelot SIX <[email protected]>
Date:   Wed Jul 1 17:09:25 2026 +0100

    gdb/testsuite: fix gdb.rocm/interrupt-twice
    
    Since 246aecb1cd1 "gdb/testsuite: make gdb_breakpoint, runto and
    runto_main use parse_args", gdb_breakpoint arguments changed.  The
    gdb.rocm/interrupt-twice.exp testcase was not updated to call
    gdb_breakpoint with correct arguments.  This due to the new test being
    reviewed before the gdb_breakpoint landed, but it being pushed after.
    
    This patch fixes this issue.
    
    Change-Id: I0204e2c3cc9b704c79ce01386134e13b018593b8
    Reviewed-By: Tankut Baris Aktemur <[email protected]>

Diff:
---
 gdb/testsuite/gdb.rocm/interrupt-twice.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/testsuite/gdb.rocm/interrupt-twice.exp b/gdb/testsuite/gdb.rocm/interrupt-twice.exp
index bdaa3babe16..0e87b5c66e8 100644
--- a/gdb/testsuite/gdb.rocm/interrupt-twice.exp
+++ b/gdb/testsuite/gdb.rocm/interrupt-twice.exp
@@ -33,7 +33,7 @@ with_rocm_gpu_lock {
 	clean_restart $::testfile
     }
 
-    gdb_breakpoint "loop" {allow-pending} {temporary}
+    gdb_breakpoint "loop" -allow-pending -temporary
     gdb_run_cmd
 
     set gpu_thread "undefined"