proc gdbvar_simple_if_test {} {
global gdb_prompt
- gdb_test "set \$foo = 0" "" "set foo in gdbvar_simple_if_test"
+ gdb_test_no_output "set \$foo = 0" "set foo in gdbvar_simple_if_test"
# All this test should do is print 0xdeadbeef once.
gdb_test "if \$foo == 1\np/x 0xfeedface\nelse\np/x 0xdeadbeef\nend" \
"\\\$\[0-9\]* = 0xdeadbeef" "gdbvar_simple_if_test #1"
proc gdbvar_simple_while_test {} {
global gdb_prompt
- gdb_test "set \$foo = 5" "" "set foo in gdbvar_simple_while_test"
+ gdb_test_no_output "set \$foo = 5" "set foo in gdbvar_simple_while_test"
# This test should print 0xfeedface five times.
gdb_test "while \$foo > 0\np/x 0xfeedface\nset \$foo -= 1\nend" \
"\\\$\[0-9\]* = 0xfeedface\[^\n\]*\n\\\$\[0-9\]* = 0xfeedface\[^\n\]*\n\\\$\[0-9\]* = 0xfeedface\[^\n\]*\n\\\$\[0-9\]* = 0xfeedface\[^\n\]*\n\\\$\[0-9\]* = 0xfeedface" \
proc gdbvar_complex_if_while_test {} {
global gdb_prompt
- gdb_test "set \$foo = 4" "" "set foo in gdbvar complex_if_while_test"
+ gdb_test_no_output "set \$foo = 4" \
+ "set foo in gdbvar complex_if_while_test"
# This test should alternate between 0xdeadbeef and 0xfeedface two times.
gdb_test "while \$foo > 0\nset \$foo -= 1\nif \(\$foo % 2\) == 1\np/x 0xdeadbeef\nelse\np/x 0xfeedface\nend\nend" \
"\\\$\[0-9\]* = 0xdeadbeef\[^\n\]*\n\\\$\[0-9\]* = 0xfeedface\[^\n\]*\n\\\$\[0-9\]* = 0xdeadbeef\[^\n\]*\n\\\$\[0-9\]* = 0xfeedface" \
return
}
- gdb_test "set args 5" "" "set args in progvar_simple_while_test"
+ gdb_test_no_output "set args 5" "set args in progvar_simple_while_test"
if { ![runto factorial] } then { gdb_suppress_tests }
# Don't depend upon argument passing, since most simulators don't
# currently support it. Bash value variable to be what we want.
return
}
- gdb_test "set args 4" "" "set args in progvar_complex_if_while_test"
+ gdb_test_no_output "set args 4" \
+ "set args in progvar_complex_if_while_test"
if { ![runto factorial] } then { gdb_suppress_tests }
# Don't depend upon argument passing, since most simulators don't
# currently support it. Bash value variable to be what we want.
return
}
- gdb_test "set args 5" "" "set args in if_while_breakpoint_command_test"
+ gdb_test_no_output "set args 5" \
+ "set args in if_while_breakpoint_command_test"
if { ![runto factorial] } then { gdb_suppress_tests }
# Don't depend upon argument passing, since most simulators don't
# currently support it. Bash value variable to be what we want.
return
}
- gdb_test "set args 6" "" "set args in infrun_breakpoint_command_test"
+ gdb_test_no_output "set args 6" \
+ "set args in infrun_breakpoint_command_test"
if { ![runto factorial] } then { gdb_suppress_tests }
# Don't depend upon argument passing, since most simulators don't
# currently support it. Bash value variable to be what we want.
return
}
- gdb_test "set args 6" "" "set args in breakpoint_command_test"
+ gdb_test_no_output "set args 6" "set args in breakpoint_command_test"
if { ![runto factorial] } then { gdb_suppress_tests; }
# Don't depend upon argument passing, since most simulators don't
# currently support it. Bash value variable to be what we want.
proc user_defined_command_test {} {
global gdb_prompt
- gdb_test "set \$foo = 4" "" "set foo in user_defined_command_test"
+ gdb_test_no_output "set \$foo = 4" \
+ "set foo in user_defined_command_test"
gdb_test_multiple "define mycommand" \
"define mycommand in user_defined_command_test" {
gdb_test "set can-use-hw-watchpoints 0" "" ""
}
- gdb_test "set args 6" "" "set args in watchpoint_command_test"
+ gdb_test_no_output "set args 6" "set args in watchpoint_command_test"
if { ![runto factorial] } then { return }
delete_breakpoints
gdb_test "maintenance deprecate blah" "Can't find command.*" \
"tried to deprecate non-existing command"
- gdb_test "maintenance deprecate p \"new_p\"" "" "maintenance deprecate p \"new_p\" /1/"
+ gdb_test_no_output "maintenance deprecate p \"new_p\"" "maintenance deprecate p \"new_p\" /1/"
gdb_test "p 5" \
"Warning: 'p', an alias for the command 'print' is deprecated.*Use 'new_p'.*" \
"p deprecated warning, with replacement"
gdb_test "p 5" ".\[0-9\]* = 5.*" "Deprecated warning goes away /1/"
- gdb_test "maintenance deprecate p \"new_p\"" "" "maintenance deprecate p \"new_p\" /2/"
- gdb_test "maintenance deprecate print \"new_print\"" ""
+ gdb_test_no_output "maintenance deprecate p \"new_p\"" "maintenance deprecate p \"new_p\" /2/"
+ gdb_test_no_output "maintenance deprecate print \"new_print\""
gdb_test "p 5" \
"Warning: command 'print' \\(p\\) is deprecated.*Use 'new_print'.*" \
"both alias and command are deprecated"
gdb_test "p 5" ".\[0-9\]* = 5.*" "Deprecated warning goes away /2/"
- gdb_test "maintenance deprecate set remote memory-read-packet-size \"srm\" " \
- "" \
+ gdb_test_no_output "maintenance deprecate set remote memory-read-packet-size \"srm\" " \
"deprecate long command /1/"
gdb_test "set remote memory-read-packet-size" \
"Warning: command 'set remote memory-read-packet-size' is deprecated.*Use 'srm'.*" \
"long command deprecated /1/"
- gdb_test "maintenance deprecate set remote memory-read-packet-size" \
- "" \
+ gdb_test_no_output "maintenance deprecate set remote memory-read-packet-size" \
"deprecate long command /2/"
gdb_test "set remote memory-read-packet-size" \
"Warning: command 'set remote memory-read-packet-size' is deprecated.*No alternative known.*" \
return
}
- gdb_test "set args 1" "" "set args in bp_deleted_in_command_test"
+ gdb_test_no_output "set args 1" \
+ "set args in bp_deleted_in_command_test"
delete_breakpoints
# Create a breakpoint, and associate a command-list to it, with
return
}
- gdb_test "set args 1" "" "set args in temporary_breakpoint_commands"
+ gdb_test_no_output "set args 1" \
+ "set args in temporary_breakpoint_commands"
delete_breakpoints
# Create a temporary breakpoint, and associate a commands list to it.
proc if_commands_test {} {
global gdb_prompt
- gdb_test "set \$tem = 1" "" "set \$tem in if_commands_test"
+ gdb_test_no_output "set \$tem = 1" "set \$tem in if_commands_test"
set test "if_commands_test 1"
gdb_test_no_prompt "if \$tem == 2" { >} $test