]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Fix create_breakpoint_parse_arg_string self-test
authorTom Tromey <tromey@adacore.com>
Mon, 12 May 2025 17:30:33 +0000 (11:30 -0600)
committerTom Tromey <tromey@adacore.com>
Wed, 14 May 2025 15:18:01 +0000 (09:18 -0600)
commitf8f02611616a7dfd556d0052001c9845852b57b0
treed7afe29ac2aad17593210215bd2625b53ed9047a
parent9f400a2f15c4892537727f75acb5e3b463aa0ea3
Fix create_breakpoint_parse_arg_string self-test

The emoji patch broke the create_breakpoint_parse_arg_string self-test
when gdb is running on a suitable terminal.  The problem is that the
test case doesn't take the error prefix string into account.

This patch fixes the test by having it compare the exception message
directly, rather than relying on the result of exception_print.  I did
try a different approach, of having the test mimic exception_print,
but this one seemed cleaner to me.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/break-cond-parse.c