Set test message in py-parameter.exp

Pedro pointed out that a test in py-parameter.exp had an empty
message.  This fixes it.

testsuite/ChangeLog
2018-05-02  Tom Tromey  <tom@tromey.com>

	* gdb.python/py-parameter.exp: Set test message.
This commit is contained in:
Tom Tromey 2018-05-02 16:37:57 -06:00
parent 0489430a0e
commit 77d3c63b0d
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2018-05-02 Tom Tromey <tom@tromey.com>
* gdb.python/py-parameter.exp: Set test message.
2018-05-02 Tom Tromey <tom@tromey.com>
PR python/20084:

View File

@ -197,7 +197,8 @@ foreach kind {PARAM_ZUINTEGER PARAM_ZUINTEGER_UNLIMITED} {
if {$kind == "PARAM_ZUINTEGER"} {
gdb_test "python test_param_$kind.value = -1" "RuntimeError: Range exceeded.*"
} else {
gdb_test_no_output "python test_param_$kind.value = -1" ""
gdb_test_no_output "python test_param_$kind.value = -1" \
"check that PARAM_ZUINTEGER value can be set to -1"
gdb_test "python print(gdb.parameter('test-$kind'))" "-1" \
"check that PARAM_ZUINTEGER value is -1 after setting"
}