[binutils-gdb] gdb/testsuite: fix regexp in gdb.rocm/watchpoint-at-end-of-shader.exp

Tankut Baris Aktemur via Gdb-cvs <[email protected]> Wed, 20 May 2026 11:22:36 +0000 (GMT)
Newsgroups gmane.comp.gdb.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=051ac6a03a511d3a6948190ed86d3c06fc012212

commit 051ac6a03a511d3a6948190ed86d3c06fc012212
Author: Tankut Baris Aktemur <[email protected]>
Date:   Wed May 20 06:21:43 2026 -0500

    gdb/testsuite: fix regexp in gdb.rocm/watchpoint-at-end-of-shader.exp
    
    The following tests fail:
    
      FAIL: gdb.rocm/watchpoint-at-end-of-shader.exp: precise_memory=on: continue
      FAIL: gdb.rocm/watchpoint-at-end-of-shader.exp: precise_memory=off: continue
    
    The reason is a difference in outputs seen in upstream and downstream
    branches.  Fix the regexps to avoid the failures.
    
    Approved-by: Lancelot Six <[email protected]> (amdgpu)

Diff:
---
 gdb/testsuite/gdb.rocm/watchpoint-at-end-of-shader.exp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gdb/testsuite/gdb.rocm/watchpoint-at-end-of-shader.exp b/gdb/testsuite/gdb.rocm/watchpoint-at-end-of-shader.exp
index ff233c8b26a..ea88c1269b7 100644
--- a/gdb/testsuite/gdb.rocm/watchpoint-at-end-of-shader.exp
+++ b/gdb/testsuite/gdb.rocm/watchpoint-at-end-of-shader.exp
@@ -71,9 +71,9 @@ proc do_test {precise_memory has_xfail} {
 	    setup_xfail "*-*-*"
 	}
 	gdb_test "continue" \
-	    [multi_line "Switching to thread $::decimal, lane 0.*" \
+	    [multi_line "Switching to \[^\r\n\]+(?=\r\n)" \
 		"" \
-		"Thread $::decimal \".*\" hit Hardware watchpoint $::decimal: -location \\*v" \
+		"Thread $::decimal \[^\r\n\]*hit Hardware watchpoint $::decimal: -location \\*v" \
 		"" \
 		"Old value = 64" \
 		"New value = 8" \