From dbc3717013bed530d4c1de3ac7da906fa06bfb3e Mon Sep 17 00:00:00 2001 From: "Maciej W. Rozycki" Date: Wed, 17 Aug 2022 22:59:11 +0100 Subject: [PATCH] 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. --- gdb/testsuite/gdb.python/py-parameter.exp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" } -- 2.30.2