* [pushed] Use $decimal in timestamp.exp
@ 2022-12-28 17:08 Tom Tromey
0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2022-12-28 17:08 UTC (permalink / raw)
To: gdb-patches; +Cc: Tom Tromey
This patch fixes a review comment by Tom de Vries. He pointed out
that the new timestamp.exp should use the $decimal convenience regexp.
---
gdb/testsuite/gdb.base/timestamp.exp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdb/testsuite/gdb.base/timestamp.exp b/gdb/testsuite/gdb.base/timestamp.exp
index 3d124b450e5..c02b34391eb 100644
--- a/gdb/testsuite/gdb.base/timestamp.exp
+++ b/gdb/testsuite/gdb.base/timestamp.exp
@@ -21,4 +21,4 @@ clean_restart
gdb_test_no_output "set debug expression 1"
gdb_test_no_output "set debug timestamp 1"
-gdb_test "print 23" "\[0-9\]+\\.\[0-9\]+ Operation: OP_LONG.* = 23"
+gdb_test "print 23" "$decimal\\.$decimal Operation: OP_LONG.* = 23"
--
2.38.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-12-28 17:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-28 17:08 [pushed] Use $decimal in timestamp.exp Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).