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.
This commit is contained in:
parent
7744e3278b
commit
dbc3717013
@ -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"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user