public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] 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-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0a923a6adb9b5a69f03ecd899a0e04881ee5364c

commit 0a923a6adb9b5a69f03ecd899a0e04881ee5364c
Author: Tom Tromey <tom@tromey.com>
Date:   Wed Dec 28 10:07:45 2022 -0700

    Use $decimal in timestamp.exp
    
    This patch fixes a review comment by Tom de Vries.  He pointed out
    that the new timestamp.exp should use the $decimal convenience regexp.

Diff:
---
 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"

^ 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 [binutils-gdb] 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).