@@ -22,11 +22,11 @@ tuiterm_env
standard_testfile main-one-line.c
set main_line [gdb_get_line_number "int main"]
if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
- return -1
+ return
}
Term::clean_restart 24 80 $testfile
if {![Term::enter_tui]} {
unsupported "TUI not supported"
@@ -18,11 +18,11 @@
tuiterm_env
standard_testfile tui-layout.c
if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
- return -1
+ return
}
Term::clean_restart 24 80 $testfile
if {![Term::enter_tui]} {
unsupported "TUI not supported"
@@ -36,11 +36,11 @@ set srcfile [standard_output_file $srcfile]
set fd [open $srcfile w]
puts $fd $src_txt
close $fd
if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
- return -1
+ return
}
Term::clean_restart 24 80 $testfile
gdb_test_no_output "maint set tui-left-margin-verbose on"
@@ -25,23 +25,23 @@ tuiterm_env
standard_testfile tui-layout.c
set core [standard_output_file "${testfile}.core"]
if { [prepare_for_testing "failed to prepare" $testfile $srcfile debug] } {
- return -1
+ return
}
# Only run on native boards.
require {target_can_use_run_cmd core}
if { ![runto_main] } {
- return -1
+ return
}
if { ![gdb_gcore_cmd "$core" "save a corefile"] } {
untested "could not generate a corefile"
- return -1
+ return
}
set src_line "return 0;"
set src_line_nr [gdb_get_line_number $src_line]
@@ -22,11 +22,11 @@ require target_can_use_run_cmd
tuiterm_env
standard_testfile
if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
- return -1
+ return
}
Term::clean_restart 24 80 $testfile
if {![Term::enter_tui]} {
@@ -18,11 +18,11 @@
tuiterm_env
standard_testfile tui-layout.c
if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
- return -1
+ return
}
Term::clean_restart 24 80 $testfile
gdb_test "list -q main"
@@ -18,11 +18,11 @@
tuiterm_env
standard_testfile tui-layout.c
if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
- return -1
+ return
}
Term::clean_restart 24 80 $testfile
if {![Term::enter_tui]} {
unsupported "TUI not supported"
@@ -21,11 +21,11 @@ require allow_tui_tests
tuiterm_env
standard_testfile tui-layout.c
if { [build_executable "failed to prepare" $testfile $srcfile ] == -1} {
- return -1
+ return
}
Term::clean_restart 24 80 $testfile
if {![runto_main]} {
@@ -20,11 +20,11 @@ require allow_tui_tests
tuiterm_env
standard_testfile tui-layout.c
if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
- return -1
+ return
}
# Note: don't pass the executable here
Term::clean_restart 24 80
@@ -18,11 +18,11 @@
tuiterm_env
standard_testfile tui-layout.c
if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
- return -1
+ return
}
# Make sure TUI is supported before continuing.
with_test_prefix "initial check" {
Term::clean_restart 24 80 $testfile
@@ -18,11 +18,11 @@
tuiterm_env
standard_testfile tui-layout.c
if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
- return -1
+ return
}
Term::clean_restart 24 80 $testfile
if {![runto_main]} {
@@ -21,11 +21,11 @@ tuiterm_env
# Use main-one-line.c to get the line info at a predictable location without
# resorting to a dwarf assembly test-case.
standard_testfile main-one-line.c
if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
- return -1
+ return
}
Term::clean_restart 24 80 $testfile
if {![Term::enter_tui]} {
@@ -21,11 +21,11 @@ standard_testfile -main.c -foo.c
if { [build_executable_from_specs "failed to prepare" \
$testfile {debug} \
$srcfile {debug} \
$srcfile2 {nodebug}] == -1 } {
- return -1
+ return
}
tuiterm_env
Term::clean_restart 24 80 $testfile
@@ -20,11 +20,11 @@
tuiterm_env
standard_testfile main-one-line.c
if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
- return -1
+ return
}
Term::clean_restart 24 80 $testfile
if {![Term::enter_tui]} {
@@ -18,11 +18,11 @@
tuiterm_env
standard_testfile tui-layout.c
if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
- return -1
+ return
}
Term::clean_restart 24 80 $testfile
if {![runto_main]} {
@@ -22,11 +22,11 @@
tuiterm_env
standard_testfile tui-layout.c
if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
- return -1
+ return
}
Term::clean_restart 24 80 $testfile
if {![Term::enter_tui]} {
unsupported "TUI not supported"
@@ -21,11 +21,11 @@ tuiterm_env
load_lib gdb-python.exp
standard_testfile
if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
- return -1
+ return
}
# Run a series of tests based on various test specifications.
#
# Each test specification is a tuple where the first item is the name of a
@@ -21,11 +21,11 @@ require allow_tui_tests
tuiterm_env
standard_testfile
if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
- return -1
+ return
}
Term::clean_restart 24 80 $testfile
if {![Term::enter_tui]} {
@@ -25,11 +25,11 @@ lappend opts debug
lappend opts additional_flags=-static
lappend opts additional_flags=-nostdlib
lappend opts ldflags=-nostartfiles
if { [build_executable "failed to prepare" $testfile $srcfile $opts] == -1 } {
- return -1
+ return
}
Term::clean_restart 24 80 $testfile
if {![Term::prepare_for_tui]} {
unsupported "TUI not supported"
@@ -19,11 +19,11 @@
tuiterm_env
standard_testfile tui-layout.c
if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
- return -1
+ return
}
# The wider the window is, the less line truncation happens, so matching
# pre-scroll to post-scroll lines is more accurate. But 100% accurate line
# matching isn't a goal of the test-case.
@@ -21,11 +21,11 @@ require allow_tui_tests
tuiterm_env
standard_testfile
if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
- return -1
+ return
}
# Run one test of the 'layout' command, selecting LAYOUT_NAME.
#
# TERMINAL should be either 'dumb' or 'ansi'. When TERMINAL is 'dumb'
@@ -18,11 +18,11 @@
tuiterm_env
standard_testfile tui-layout.c
if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
- return -1
+ return
}
Term::clean_restart 24 80 $testfile
if {![Term::enter_tui]} {
unsupported "TUI not supported"
@@ -18,11 +18,11 @@
tuiterm_env
standard_testfile tui-layout.c
if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
- return -1
+ return
}
Term::clean_restart 24 80 $testfile
if {![Term::enter_tui]} {
unsupported "TUI not supported"