From: Maciej W. Rozycki Date: Wed, 17 Aug 2022 21:59:11 +0000 (+0100) Subject: GDB/testsuite: Fix PARAM_ZUINTEGER reported for PARAM_ZUINTEGER_UNLIMITED X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dbc3717013bed530d4c1de3ac7da906fa06bfb3e;p=binutils-gdb.git GDB/testsuite: Fix PARAM_ZUINTEGER reported for PARAM_ZUINTEGER_UNLIMITED Correctly report PARAM_ZUINTEGER_UNLIMITED rather than PARAM_ZUINTEGER in testing a Python parameter of the PARAM_ZUINTEGER_UNLIMITED type. --- diff --git a/gdb/testsuite/gdb.python/py-parameter.exp b/gdb/testsuite/gdb.python/py-parameter.exp index d6db6ac3bb1..4aa3e9686db 100644 --- a/gdb/testsuite/gdb.python/py-parameter.exp +++ b/gdb/testsuite/gdb.python/py-parameter.exp @@ -346,9 +346,9 @@ proc_with_prefix test_integer_parameter { } { gdb_test "python test_param_$kind.value = -1" "RuntimeError: Range exceeded.*" } elseif {$kind == "PARAM_ZUINTEGER_UNLIMITED"} { gdb_test_no_output "python test_param_$kind.value = -1" \ - "check that PARAM_ZUINTEGER value can be set to -1" + "check that PARAM_ZUINTEGER_UNLIMITED value can be set to -1" gdb_test "python print(gdb.parameter('test-$kind'))" "-1" \ - "check that PARAM_ZUINTEGER value is -1 after setting" + "check that PARAM_ZUINTEGER_UNLIMITED value is -1 after setting" } else { error "invalid kind: $kind" }