From: Tom Tromey Date: Wed, 28 Dec 2022 17:07:45 +0000 (-0700) Subject: Use $decimal in timestamp.exp X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0a923a6adb9b5a69f03ecd899a0e04881ee5364c;p=binutils-gdb.git 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 --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"