Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [pushed] [gdb/testsuite] Simplify regexp in gdb.rocm/watchpoint-at-end-of-shader.exp
@ 2026-08-19  8:29 Tom de Vries
  0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2026-08-19  8:29 UTC (permalink / raw)
  To: gdb-patches

In gdb.rocm/watchpoint-at-end-of-shader.exp, we have:
...
	    [multi_line "Switching to \[^\r\n\]+(?=\r\n)" \
		"" \
...

This expands to "Switching to \[^\r\n\]+(?=\r\n)\r\n".

The lookahead '(?=\r\n)' is superfluous (because it's followed by '\r\n'), so
drop it.

While we're at it, reduce escaping by using {}.
---
 gdb/testsuite/gdb.rocm/watchpoint-at-end-of-shader.exp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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 2ae0e044a53..298b5be9461 100644
--- a/gdb/testsuite/gdb.rocm/watchpoint-at-end-of-shader.exp
+++ b/gdb/testsuite/gdb.rocm/watchpoint-at-end-of-shader.exp
@@ -71,7 +71,8 @@ proc do_test {precise_memory has_xfail} {
 	    setup_xfail "*-*-*"
 	}
 	gdb_test "continue" \
-	    [multi_line "Switching to \[^\r\n\]+(?=\r\n)" \
+	    [multi_line \
+		{Switching to [^\r\n]+} \
 		"" \
 		"Thread $::decimal \[^\r\n\]*hit Hardware watchpoint $::decimal: -location \\*v" \
 		"" \

base-commit: ab1830f633107b180b46938003e6f49fb44cb17d
-- 
2.51.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-19  8:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-19  8:29 [pushed] [gdb/testsuite] Simplify regexp in gdb.rocm/watchpoint-at-end-of-shader.exp Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox