]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb/testsuite] Improve quotemeta error messages
authorTom de Vries <tdevries@suse.de>
Fri, 13 Feb 2026 11:03:06 +0000 (12:03 +0100)
committerTom de Vries <tdevries@suse.de>
Fri, 13 Feb 2026 11:03:06 +0000 (12:03 +0100)
commitd2d785c630757d31aedf9467acd0f13b2adc9876
treef76224e378520fa39463f9eaf9b3c353e931a991
parent2f42745d767ef540ae6860feeddaa1210abb6e35
[gdb/testsuite] Improve quotemeta error messages

With test-case gdb.testsuite/quotemeta.exp we get:
...
check_quotemeta_fail: input: @NOTHING
check_quotemeta_fail: catch_res: 1, catch_msg: \
  can't read "::_quotemeta(NOTHING)": no such element in array
PASS: gdb.testsuite/quotemeta.exp: no-such-subst
check_quotemeta_fail: input: @bad-name
check_quotemeta_fail: catch_res: 1, catch_msg: invalid quotemeta expression
PASS: gdb.testsuite/quotemeta.exp: bad-name
...

Improve the error messages to:
- undefined quotemeta expression @NOTHING
- invalid quotemeta expression @bad-name
gdb/testsuite/lib/quotemeta.exp