diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2022-10-24 12:43:38 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-10-26 11:23:40 -0400 |
commit | ee7f721ea2f51cd6cda301ce6a68e84f61c31e0c (patch) | |
tree | 12cd47313f9980fc8556d0d89d1c427a45753031 /zlib | |
parent | 23295de1317433210cb0303ef304e68763607c78 (diff) | |
download | binutils-ee7f721ea2f51cd6cda301ce6a68e84f61c31e0c.zip binutils-ee7f721ea2f51cd6cda301ce6a68e84f61c31e0c.tar.gz binutils-ee7f721ea2f51cd6cda301ce6a68e84f61c31e0c.tar.bz2 |
gdb/testsuite: fix gdb.guile/scm-parameter.exp "wrong type argument" test pattern for Guile >= 2.2
Since commit 90319cefe3 ("GDB/Guile: Don't assert that an integer value
is boolean"), I see:
FAIL: gdb.guile/scm-parameter.exp: kind=PARAM_ZINTEGER: test-PARAM_ZINTEGER-param: guile (set-parameter-value! test-PARAM_ZINTEGER-param #:unlimited)
FAIL: gdb.guile/scm-parameter.exp: kind=PARAM_ZUINTEGER: test-PARAM_ZUINTEGER-param: guile (set-parameter-value! test-PARAM_ZUINTEGER-param #:unlimited)
This comes from the fact that GDB outputs this:
ERROR: In procedure set-parameter-value!:
In procedure gdbscm_set_parameter_value_x: Wrong type argument in position 2 (expecting integer): #:unlimited
Error while executing Scheme code.
while the test expects an additional "ERROR:" on the second line,
something like this:
ERROR: In procedure set-parameter-value!:
ERROR: In procedure gdbscm_set_parameter_value_x: Wrong type argument in position 2 (expecting integer): #:unlimited
Error while executing Scheme code.
Guile 2.0 outputs the `ERROR:` on the second line, while later versions
do not. Change the pattern to accept both outputs. This is similar to
commit 6bbe1a929c6 ("[gdb/testsuite] Fix gdb.guile/scm-breakpoint.exp
with guile 3.0").
Change-Id: I9dc45e7492a4f08340cad974610242ed689de959
Diffstat (limited to 'zlib')
0 files changed, 0 insertions, 0 deletions