From: Tom de Vries <tdevries@suse.de>
To: gdb-patches@sourceware.org
Subject: [pushed 6/6] [gdb/testsuite] Update "error in expression, near" regexp
Date: Fri, 6 Nov 2026 23:34:50 +0100 [thread overview]
Message-ID: <20261106223450.1554600-7-tdevries@suse.de> (raw)
In-Reply-To: <20261106223450.1554600-1-tdevries@suse.de>
Update regexp "A (parse|syntax) error in expression, near `42'" to use
"42" instead.
---
gdb/testsuite/gdb.cp/classes.exp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdb/testsuite/gdb.cp/classes.exp b/gdb/testsuite/gdb.cp/classes.exp
index 84fd575ec3a..b4f1c7c34d2 100644
--- a/gdb/testsuite/gdb.cp/classes.exp
+++ b/gdb/testsuite/gdb.cp/classes.exp
@@ -594,7 +594,7 @@ proc test_enums {} {
-re "${::valnum_re} = (ClassWithEnum::)?yellow$nl$gdb_prompt $" {
pass "print (ClassWithEnum::PrivEnum) 42"
}
- -re "A (parse|syntax) error in expression, near `42'.$nl$gdb_prompt $" {
+ -re -wrap {A (parse|syntax) error in expression, near "42"[.]} {
# "parse error" is bison 1.35.
# "syntax error" is bison 1.875.
kfail "gdb/1588" "print (ClassWithEnum::PrivEnum) 42"
--
2.51.0
prev parent reply other threads:[~2026-11-06 22:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-06 22:34 [pushed 0/6] [gdb/testsuite] Some testsuite fixes Tom de Vries
2026-11-06 22:34 ` [pushed 1/6] [gdb/testsuite] Fix regexp in gdb.base/solib-overlap.exp Tom de Vries
2026-11-06 22:34 ` [pushed 2/6] [gdb/testsuite] Cleanup "Attaching to program" regexps Tom de Vries
2026-11-06 22:34 ` [pushed 3/6] [gdb/testsuite] Update regexp in gdb.base/default.exp Tom de Vries
2026-11-06 22:34 ` [pushed 4/6] [gdb/testsuite] Update "Interpreter unrecognized" regexp Tom de Vries
2026-11-06 22:34 ` [pushed 5/6] [gdb/testsuite] Reformat gdb.cp/classes.exp Tom de Vries
2026-11-06 22:34 ` Tom de Vries [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261106223450.1554600-7-tdevries@suse.de \
--to=tdevries@suse.de \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox