aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.ada
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-09-30 11:52:21 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2021-09-30 15:27:39 -0400
commit4dfef5be6812dd7abfbc8f18e9c0384f2522b511 (patch)
tree90aa986d915c17f2320655298e2799d3a2cd1841 /gdb/testsuite/gdb.ada
parent2fed9db40b1179f62c6fb0f2cacfb0db6b50af46 (diff)
downloadgdb-4dfef5be6812dd7abfbc8f18e9c0384f2522b511.zip
gdb-4dfef5be6812dd7abfbc8f18e9c0384f2522b511.tar.gz
gdb-4dfef5be6812dd7abfbc8f18e9c0384f2522b511.tar.bz2
gdb/testsuite: make runto_main not pass no-message to runto
As follow-up to this discussion: https://sourceware.org/pipermail/gdb-patches/2020-August/171385.html ... make runto_main not pass no-message to runto. This means that if we fail to run to main, for some reason, we'll emit a FAIL. This is the behavior we want the majority of (if not all) the time. Without this, we rely on tests logging a failure if runto_main fails, otherwise. They do so in a very inconsisteny mannet, sometimes using "fail", "unsupported" or "untested". The messages also vary widly. This patch removes all these messages as well. Also, remove a few "fail" where we call runto (and not runto_main). by default (without an explicit no-message argument), runto prints a failure already. In two places, gdb.multi/multi-re-run.exp and gdb.python/py-pp-registration.exp, remove "message" passed to runto. This removes a few PASSes that we don't care about (but FAILs will still be printed if we fail to run to where we want to). This aligns their behavior with the rest of the testsuite. Change-Id: Ib763c98c5f4fb6898886b635210d7c34bd4b9023
Diffstat (limited to 'gdb/testsuite/gdb.ada')
-rw-r--r--gdb/testsuite/gdb.ada/array_return.exp1
-rw-r--r--gdb/testsuite/gdb.ada/bp_inlined_func.exp1
-rw-r--r--gdb/testsuite/gdb.ada/catch_assert_if.exp2
-rw-r--r--gdb/testsuite/gdb.ada/catch_ex.exp3
-rw-r--r--gdb/testsuite/gdb.ada/excep_handle.exp1
-rw-r--r--gdb/testsuite/gdb.ada/info_auto_lang.exp1
-rw-r--r--gdb/testsuite/gdb.ada/info_exc.exp1
-rw-r--r--gdb/testsuite/gdb.ada/mi_catch_assert.exp2
-rw-r--r--gdb/testsuite/gdb.ada/mi_catch_ex.exp3
-rw-r--r--gdb/testsuite/gdb.ada/mi_catch_ex_hand.exp3
-rw-r--r--gdb/testsuite/gdb.ada/mi_dyn_arr.exp1
-rw-r--r--gdb/testsuite/gdb.ada/mi_ex_cond.exp1
-rw-r--r--gdb/testsuite/gdb.ada/mi_exc_info.exp1
-rw-r--r--gdb/testsuite/gdb.ada/mi_interface.exp1
-rw-r--r--gdb/testsuite/gdb.ada/mi_prot.exp1
-rw-r--r--gdb/testsuite/gdb.ada/mi_ref_changeable.exp1
-rw-r--r--gdb/testsuite/gdb.ada/mi_string_access.exp1
-rw-r--r--gdb/testsuite/gdb.ada/mi_task_arg.exp1
-rw-r--r--gdb/testsuite/gdb.ada/mi_task_info.exp1
-rw-r--r--gdb/testsuite/gdb.ada/mi_var_access.exp1
-rw-r--r--gdb/testsuite/gdb.ada/mi_var_array.exp1
-rw-r--r--gdb/testsuite/gdb.ada/mi_var_union.exp1
-rw-r--r--gdb/testsuite/gdb.ada/mi_variant.exp1
23 files changed, 0 insertions, 31 deletions
diff --git a/gdb/testsuite/gdb.ada/array_return.exp b/gdb/testsuite/gdb.ada/array_return.exp
index aceb5fd..9b2800d 100644
--- a/gdb/testsuite/gdb.ada/array_return.exp
+++ b/gdb/testsuite/gdb.ada/array_return.exp
@@ -28,7 +28,6 @@ clean_restart ${testfile}
# Start the inferior
if ![runto_main] then {
- fail "cannot run to main, testcase aborted"
return 0
}
diff --git a/gdb/testsuite/gdb.ada/bp_inlined_func.exp b/gdb/testsuite/gdb.ada/bp_inlined_func.exp
index 4d30423..bc25397 100644
--- a/gdb/testsuite/gdb.ada/bp_inlined_func.exp
+++ b/gdb/testsuite/gdb.ada/bp_inlined_func.exp
@@ -26,7 +26,6 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" }
clean_restart ${testfile}
if ![runto_main] then {
- fail "cannot run to main, testcase aborted"
return 0
}
diff --git a/gdb/testsuite/gdb.ada/catch_assert_if.exp b/gdb/testsuite/gdb.ada/catch_assert_if.exp
index e6f4d2d..f469658 100644
--- a/gdb/testsuite/gdb.ada/catch_assert_if.exp
+++ b/gdb/testsuite/gdb.ada/catch_assert_if.exp
@@ -33,7 +33,6 @@ set eol "\[\r\n\]+"
set sp "\[ \t\]*"
if ![runto_main] then {
- fail "cannot run to main, testcase aborted"
return 0
}
@@ -62,7 +61,6 @@ gdb_test_multiple "catch exception" $msg {
# - continue, the program exits.
if ![runto_main] then {
- fail "cannot run to main, testcase aborted"
return 0
}
diff --git a/gdb/testsuite/gdb.ada/catch_ex.exp b/gdb/testsuite/gdb.ada/catch_ex.exp
index 12e0f68..736e490 100644
--- a/gdb/testsuite/gdb.ada/catch_ex.exp
+++ b/gdb/testsuite/gdb.ada/catch_ex.exp
@@ -41,7 +41,6 @@ set catch_exception_info \
####################################
if ![runto_main] then {
- fail "cannot run to main, testcase aborted"
return 0
}
@@ -90,7 +89,6 @@ gdb_test "continue" \
# - continue, the program exits.
if ![runto_main] then {
- fail "cannot run to main, testcase aborted"
return 0
}
@@ -151,7 +149,6 @@ gdb_test "continue" \
# the program.
if ![runto_main] then {
- fail "cannot run to main, testcase aborted"
return 0
}
diff --git a/gdb/testsuite/gdb.ada/excep_handle.exp b/gdb/testsuite/gdb.ada/excep_handle.exp
index 990585c..5760c53 100644
--- a/gdb/testsuite/gdb.ada/excep_handle.exp
+++ b/gdb/testsuite/gdb.ada/excep_handle.exp
@@ -45,7 +45,6 @@ set catchpoint_storage_error_msg \
############################################
if ![runto_main] then {
- fail "cannot run to main, testcase aborted"
return 0
}
diff --git a/gdb/testsuite/gdb.ada/info_auto_lang.exp b/gdb/testsuite/gdb.ada/info_auto_lang.exp
index 0ff10537..41c4d7c 100644
--- a/gdb/testsuite/gdb.ada/info_auto_lang.exp
+++ b/gdb/testsuite/gdb.ada/info_auto_lang.exp
@@ -46,7 +46,6 @@ clean_restart ${testfile}
set bp_location [gdb_get_line_number "STOP" ${testdir}/some_c.c]
if ![runto "some_c.c:$bp_location"] then {
- fail "can't run to some_c.c STOP location"
return
}
diff --git a/gdb/testsuite/gdb.ada/info_exc.exp b/gdb/testsuite/gdb.ada/info_exc.exp
index 56e527f..c8dc074 100644
--- a/gdb/testsuite/gdb.ada/info_exc.exp
+++ b/gdb/testsuite/gdb.ada/info_exc.exp
@@ -26,7 +26,6 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" }
clean_restart ${testfile}
if ![runto_main] then {
- fail "cannot run to main, testcase aborted"
return 0
}
diff --git a/gdb/testsuite/gdb.ada/mi_catch_assert.exp b/gdb/testsuite/gdb.ada/mi_catch_assert.exp
index d00573a..0803d19 100644
--- a/gdb/testsuite/gdb.ada/mi_catch_assert.exp
+++ b/gdb/testsuite/gdb.ada/mi_catch_assert.exp
@@ -35,7 +35,6 @@ set sp "\[ \t\]*"
clean_restart ${testfile}
if ![runto_main] then {
- fail "cannot run to main, testcase aborted"
return 0
}
@@ -71,7 +70,6 @@ mi_clean_restart $binfile
# - continue, the program exits.
if {[mi_runto_main] < 0} {
- fail "cannot run to main, testcase aborted"
return 0
}
diff --git a/gdb/testsuite/gdb.ada/mi_catch_ex.exp b/gdb/testsuite/gdb.ada/mi_catch_ex.exp
index a4c58fb..1b7c580 100644
--- a/gdb/testsuite/gdb.ada/mi_catch_ex.exp
+++ b/gdb/testsuite/gdb.ada/mi_catch_ex.exp
@@ -35,7 +35,6 @@ set eol "\[\r\n\]+"
clean_restart ${testfile}
if ![runto_main] then {
- fail "cannot run to main, testcase aborted"
return 0
}
@@ -66,7 +65,6 @@ mi_clean_restart $binfile
with_test_prefix "scenario 1" {
if {[mi_runto_main] < 0} {
- fail "cannot run to main, testcase aborted"
return 0
}
}
@@ -125,7 +123,6 @@ continue_to_exception \
with_test_prefix "scenario 2" {
mi_delete_breakpoints
if {[mi_runto_main] < 0} {
- fail "cannot run to main, testcase aborted"
return 0
}
}
diff --git a/gdb/testsuite/gdb.ada/mi_catch_ex_hand.exp b/gdb/testsuite/gdb.ada/mi_catch_ex_hand.exp
index 57ec628..655b087 100644
--- a/gdb/testsuite/gdb.ada/mi_catch_ex_hand.exp
+++ b/gdb/testsuite/gdb.ada/mi_catch_ex_hand.exp
@@ -34,7 +34,6 @@ set eol "\[\r\n\]+"
clean_restart ${testfile}
if ![runto_main] then {
- fail "cannot run to main, testcase aborted"
return 0
}
@@ -65,7 +64,6 @@ mi_clean_restart $binfile
with_test_prefix "scenario 1" {
if {[mi_runto_main] < 0} {
- fail "cannot run to main, testcase aborted"
return 0
}
}
@@ -118,7 +116,6 @@ continue_to_exception_handler \
with_test_prefix "scenario 2" {
mi_delete_breakpoints
if {[mi_runto_main] < 0} {
- fail "cannot run to main, testcase aborted"
return 0
}
}
diff --git a/gdb/testsuite/gdb.ada/mi_dyn_arr.exp b/gdb/testsuite/gdb.ada/mi_dyn_arr.exp
index 34cfbe6..d796f55 100644
--- a/gdb/testsuite/gdb.ada/mi_dyn_arr.exp
+++ b/gdb/testsuite/gdb.ada/mi_dyn_arr.exp
@@ -29,7 +29,6 @@ set MIFLAGS "-i=mi"
mi_clean_restart $binfile
if {[mi_runto_main] < 0} {
- fail "cannot run to main, testcase aborted"
return 0
}
diff --git a/gdb/testsuite/gdb.ada/mi_ex_cond.exp b/gdb/testsuite/gdb.ada/mi_ex_cond.exp
index 3390354..8aa9eb9 100644
--- a/gdb/testsuite/gdb.ada/mi_ex_cond.exp
+++ b/gdb/testsuite/gdb.ada/mi_ex_cond.exp
@@ -35,7 +35,6 @@ set eol "\[\r\n\]+"
clean_restart ${testfile}
if ![runto_main] then {
- fail "cannot run to main, testcase aborted"
return 0
}
diff --git a/gdb/testsuite/gdb.ada/mi_exc_info.exp b/gdb/testsuite/gdb.ada/mi_exc_info.exp
index c9290c5..af471cf 100644
--- a/gdb/testsuite/gdb.ada/mi_exc_info.exp
+++ b/gdb/testsuite/gdb.ada/mi_exc_info.exp
@@ -29,7 +29,6 @@ set MIFLAGS "-i=mi"
mi_clean_restart $binfile
if {[mi_runto_main] < 0} {
- fail "cannot run to main, testcase aborted"
return 0
}
diff --git a/gdb/testsuite/gdb.ada/mi_interface.exp b/gdb/testsuite/gdb.ada/mi_interface.exp
index 13e0d8d..df38582 100644
--- a/gdb/testsuite/gdb.ada/mi_interface.exp
+++ b/gdb/testsuite/gdb.ada/mi_interface.exp
@@ -29,7 +29,6 @@ set MIFLAGS "-i=mi"
mi_clean_restart $binfile
if {[mi_runto_main] < 0} {
- fail "cannot run to main, testcase aborted"
return 0
}
diff --git a/gdb/testsuite/gdb.ada/mi_prot.exp b/gdb/testsuite/gdb.ada/mi_prot.exp
index 8936a6c..57f54dc 100644
--- a/gdb/testsuite/gdb.ada/mi_prot.exp
+++ b/gdb/testsuite/gdb.ada/mi_prot.exp
@@ -33,7 +33,6 @@ set MIFLAGS "-i=mi"
mi_clean_restart $binfile
if {[mi_runto_main] < 0} {
- fail "cannot run to main, testcase aborted"
return 0
}
diff --git a/gdb/testsuite/gdb.ada/mi_ref_changeable.exp b/gdb/testsuite/gdb.ada/mi_ref_changeable.exp
index 0fd5899..09f7c02 100644
--- a/gdb/testsuite/gdb.ada/mi_ref_changeable.exp
+++ b/gdb/testsuite/gdb.ada/mi_ref_changeable.exp
@@ -29,7 +29,6 @@ set MIFLAGS "-i=mi"
mi_clean_restart $binfile
if {[mi_runto_main] < 0} {
- fail "cannot run to main, testcase aborted"
return 0
}
diff --git a/gdb/testsuite/gdb.ada/mi_string_access.exp b/gdb/testsuite/gdb.ada/mi_string_access.exp
index 89026e3..75e5d5b 100644
--- a/gdb/testsuite/gdb.ada/mi_string_access.exp
+++ b/gdb/testsuite/gdb.ada/mi_string_access.exp
@@ -32,7 +32,6 @@ foreach_with_prefix scenario {all minimal} {
mi_clean_restart $binfile
if {[mi_runto_main] < 0} {
- fail "cannot run to main, testcase aborted"
return 0
}
diff --git a/gdb/testsuite/gdb.ada/mi_task_arg.exp b/gdb/testsuite/gdb.ada/mi_task_arg.exp
index c8a7465..754d93f 100644
--- a/gdb/testsuite/gdb.ada/mi_task_arg.exp
+++ b/gdb/testsuite/gdb.ada/mi_task_arg.exp
@@ -39,7 +39,6 @@ mi_gdb_load ${binfile}
mi_gdb_test "-gdb-set debug-file-directory \"\"" ".*"
if ![mi_runto "task_switch.break_me"] then {
- fail "cannot run to main, testcase aborted"
return 0
}
diff --git a/gdb/testsuite/gdb.ada/mi_task_info.exp b/gdb/testsuite/gdb.ada/mi_task_info.exp
index a7d97b0..83ecb82 100644
--- a/gdb/testsuite/gdb.ada/mi_task_info.exp
+++ b/gdb/testsuite/gdb.ada/mi_task_info.exp
@@ -40,7 +40,6 @@ mi_gdb_load ${binfile}
####################################
if ![mi_runto "task_switch.break_me"] then {
- fail "cannot run to main, testcase aborted"
return 0
}
diff --git a/gdb/testsuite/gdb.ada/mi_var_access.exp b/gdb/testsuite/gdb.ada/mi_var_access.exp
index 92b51f9..c489949 100644
--- a/gdb/testsuite/gdb.ada/mi_var_access.exp
+++ b/gdb/testsuite/gdb.ada/mi_var_access.exp
@@ -31,7 +31,6 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable debug] != "" } {
mi_clean_restart $binfile
if {[mi_runto_main] < 0} {
- fail "cannot run to main, testcase aborted"
return 0
}
diff --git a/gdb/testsuite/gdb.ada/mi_var_array.exp b/gdb/testsuite/gdb.ada/mi_var_array.exp
index e0529fb..f9f3e3f 100644
--- a/gdb/testsuite/gdb.ada/mi_var_array.exp
+++ b/gdb/testsuite/gdb.ada/mi_var_array.exp
@@ -35,7 +35,6 @@ foreach_with_prefix scenario {none all minimal} {
mi_clean_restart $binfile
if {[mi_runto_main] < 0} {
- fail "cannot run to main, testcase aborted"
return 0
}
diff --git a/gdb/testsuite/gdb.ada/mi_var_union.exp b/gdb/testsuite/gdb.ada/mi_var_union.exp
index c550f29..bb32dc8 100644
--- a/gdb/testsuite/gdb.ada/mi_var_union.exp
+++ b/gdb/testsuite/gdb.ada/mi_var_union.exp
@@ -37,7 +37,6 @@ foreach_with_prefix scenario {none all minimal} {
mi_clean_restart $binfile
if {[mi_runto_main] < 0} {
- fail "cannot run to main, testcase aborted"
return 0
}
diff --git a/gdb/testsuite/gdb.ada/mi_variant.exp b/gdb/testsuite/gdb.ada/mi_variant.exp
index a9d5d8a..850abf9 100644
--- a/gdb/testsuite/gdb.ada/mi_variant.exp
+++ b/gdb/testsuite/gdb.ada/mi_variant.exp
@@ -36,7 +36,6 @@ foreach_with_prefix scenario {none all minimal} {
mi_clean_restart $binfile
if {[mi_runto_main] < 0} {
- fail "cannot run to main, testcase aborted"
return 0
}