proc test_convenience_variables {} {
global prompt
- gdb_test "set \$foo := 101" " := 101\[\r\n\]+" \
+ gdb_test "set \$foo := 101" " := 101\[\r\n\]*" \
"Set a new convenience variable"
gdb_test "print \$foo" " = 101" \
"Print contents of new convenience variable"
- gdb_test "set \$foo := 301" " := 301\[\r\n\]+" \
+ gdb_test "set \$foo := 301" " := 301\[\r\n\]*" \
"Set convenience variable to a new value"
gdb_test "print \$foo" " = 301" \
"Print new contents of convenience variable"
- gdb_test "set \$_ := 11" " := 11\[\r\n\]+" \
+ gdb_test "set \$_ := 11" " := 11\[\r\n\]*" \
"Set convenience variable \$_"
gdb_test "print \$_" " = 11" \