diff options
author | Markus Metzger <markus.t.metzger@intel.com> | 2016-12-09 13:16:22 +0100 |
---|---|---|
committer | Markus Metzger <markus.t.metzger@intel.com> | 2017-02-01 14:38:44 +0100 |
commit | b5ac99b0828d4e1dfa33540b428c0fc6c32eda67 (patch) | |
tree | ddaf9b5e3c03c705e20a9bcbcbc6f9ff39a58e2e /gdb/testsuite/gdb.btrace | |
parent | cd4007e43421a2f974f51574b6e2b52b9b1a7a50 (diff) | |
download | gdb-b5ac99b0828d4e1dfa33540b428c0fc6c32eda67.zip gdb-b5ac99b0828d4e1dfa33540b428c0fc6c32eda67.tar.gz gdb-b5ac99b0828d4e1dfa33540b428c0fc6c32eda67.tar.bz2 |
btrace: add unsupported/untested messages when skipping tests
We may silently skip gdb.btrace tests if
- the target does not support record-btrace
- the target does not support TSX
- the target does not support gdbserver
- we fail to compile the test
- we fail to run to main
Add unsupported/untested messages for each of those.
testsuite/
* gdb.btrace/buffer-size.exp: Add unsupported/untested message if
the test is skipped.
* gdb.btrace/data.exp: Likewise.
* gdb.btrace/delta.exp: Likewise.
* gdb.btrace/dlopen.exp: Likewise.
* gdb.btrace/enable-running.exp: Likewise.
* gdb.btrace/enable.exp: Likewise.
* gdb.btrace/exception.exp: Likewise.
* gdb.btrace/function_call_history.exp: Likewise.
* gdb.btrace/gcore.exp: Likewise.
* gdb.btrace/instruction_history.exp: Likewise.
* gdb.btrace/multi-thread-step.exp: Likewise.
* gdb.btrace/nohist.exp: Likewise.
* gdb.btrace/non-stop.exp: Likewise.
* gdb.btrace/reconnect.exp: Likewise.
* gdb.btrace/record_goto-step.exp: Likewise.
* gdb.btrace/record_goto.exp: Likewise.
* gdb.btrace/rn-dl-bind.exp: Likewise.
* gdb.btrace/segv.exp: Likewise.
* gdb.btrace/step.exp: Likewise.
* gdb.btrace/stepi.exp: Likewise.
* gdb.btrace/tailcall-only.exp: Likewise.
* gdb.btrace/tailcall.exp: Likewise.
* gdb.btrace/tsx.exp: Likewise.
* gdb.btrace/unknown_functions.exp: Likewise.
* gdb.btrace/vdso.exp: Likewise.
Diffstat (limited to 'gdb/testsuite/gdb.btrace')
25 files changed, 167 insertions, 79 deletions
diff --git a/gdb/testsuite/gdb.btrace/buffer-size.exp b/gdb/testsuite/gdb.btrace/buffer-size.exp index 6d02016..c547835 100644 --- a/gdb/testsuite/gdb.btrace/buffer-size.exp +++ b/gdb/testsuite/gdb.btrace/buffer-size.exp @@ -17,16 +17,18 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -# check for btrace support -if { [skip_btrace_tests] } { return -1 } +if { [skip_btrace_tests] } { + unsupported "target does not support record-btrace" + return -1 +} -# start inferior standard_testfile record_goto.c if [prepare_for_testing "failed to prepare" $testfile $srcfile] { return -1 } if ![runto_main] { + untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/data.exp b/gdb/testsuite/gdb.btrace/data.exp index 5f2d6d3..5c6fce4 100644 --- a/gdb/testsuite/gdb.btrace/data.exp +++ b/gdb/testsuite/gdb.btrace/data.exp @@ -17,15 +17,18 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -# check for btrace support -if { [skip_btrace_tests] } { return -1 } +if { [skip_btrace_tests] } { + unsupported "target does not support record-btrace" + return -1 +} -# start inferior standard_testfile if [prepare_for_testing "failed to prepare" $testfile $srcfile] { return -1 } + if ![runto_main] { + untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/delta.exp b/gdb/testsuite/gdb.btrace/delta.exp index 5648d08..926edff 100644 --- a/gdb/testsuite/gdb.btrace/delta.exp +++ b/gdb/testsuite/gdb.btrace/delta.exp @@ -17,15 +17,18 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -# check for btrace support -if { [skip_btrace_tests] } { return -1 } +if { [skip_btrace_tests] } { + unsupported "target does not support record-btrace" + return -1 +} -# start inferior standard_testfile record_goto.c if [prepare_for_testing "failed to prepare" $testfile $srcfile] { return -1 } + if ![runto_main] { + untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/dlopen.exp b/gdb/testsuite/gdb.btrace/dlopen.exp index 209c83f..f0cb80e 100644 --- a/gdb/testsuite/gdb.btrace/dlopen.exp +++ b/gdb/testsuite/gdb.btrace/dlopen.exp @@ -15,8 +15,15 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -if { [skip_btrace_tests] } { return -1 } -if { [skip_shlib_tests] } { return -1 } +if { [skip_btrace_tests] } { + unsupported "target does not support record-btrace" + return -1 +} + +if { [skip_shlib_tests] } { + unsupported "target does not support shared library tests" + return -1 +} standard_testfile @@ -26,7 +33,7 @@ set binfile_lib [standard_output_file $basename_lib.so] if { [gdb_compile_shlib $srcfile_lib $binfile_lib \ [list additional_flags=-fPIC]] != "" } { - untested "failed to compile shared library" + untested "failed to prepare shlib" return -1 } @@ -36,7 +43,8 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile \ } if ![runto_main] { - return 0 + untested "failed to run to main" + return -1 } # Trace the test function diff --git a/gdb/testsuite/gdb.btrace/enable-running.exp b/gdb/testsuite/gdb.btrace/enable-running.exp index d549a40..1316ed1 100644 --- a/gdb/testsuite/gdb.btrace/enable-running.exp +++ b/gdb/testsuite/gdb.btrace/enable-running.exp @@ -15,10 +15,14 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -if { [skip_btrace_tests] } { return -1 } +if { [skip_btrace_tests] } { + unsupported "target does not support record-btrace" + return -1 +} standard_testfile if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" "$binfile" executable {debug}] != "" } { + untested "failed to prepare" return -1 } @@ -29,6 +33,7 @@ save_vars { GDBFLAGS } { } if ![runto_main] { + untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/enable.exp b/gdb/testsuite/gdb.btrace/enable.exp index b35218e..be20c08 100644 --- a/gdb/testsuite/gdb.btrace/enable.exp +++ b/gdb/testsuite/gdb.btrace/enable.exp @@ -17,8 +17,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -# check for btrace support -if { [skip_btrace_tests] } { return -1 } +if { [skip_btrace_tests] } { + unsupported "target does not support record-btrace" + return -1 +} # start fresh - without an executable gdb_exit @@ -35,12 +37,13 @@ gdb_test "record function-call-history" "No record target is currently active\\. gdb_test "record instruction-history" "No record target is currently active\\..*" "record instruction-history without target" gdb_test "info record" "No record target is currently active\\." "info record without target" -# start inferior standard_testfile if [prepare_for_testing "failed to prepare" $testfile {} {debug}] { return -1 } + if ![runto_main] { + untested "failed to run to main" return -1 } @@ -75,23 +78,28 @@ gdb_test "continue" ".*Inferior.*exited.*" "continue to end" # otherwise rerun twice, target should be automatically disabled load_lib gdbserver-support.exp if [skip_gdbserver_tests] { + unsupported "target does not support gdbserver" return 0 } clean_restart $testfile if ![runto_main] { + untested "failed to run to main" return -1 } if ![runto_main] { + untested "failed to run to main" return -1 } # make sure record-btrace can be enabled after re-run clean_restart $testfile if ![runto_main] { + untested "failed to run to main" return -1 } gdb_test_no_output "record btrace" if ![runto_main] { + untested "failed to run to main" return -1 } gdb_test_no_output "record btrace" "enable after re-run" diff --git a/gdb/testsuite/gdb.btrace/exception.exp b/gdb/testsuite/gdb.btrace/exception.exp index 026054f..2bac063 100755 --- a/gdb/testsuite/gdb.btrace/exception.exp +++ b/gdb/testsuite/gdb.btrace/exception.exp @@ -17,15 +17,18 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -# check for btrace support -if { [skip_btrace_tests] } { return -1 } +if { [skip_btrace_tests] } { + unsupported "target does not support record-btrace" + return -1 +} -# start inferior standard_testfile exception.cc if [prepare_for_testing "failed to prepare" $testfile $srcfile {c++ debug}] { return -1 } + if ![runto_main] { + untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/function_call_history.exp b/gdb/testsuite/gdb.btrace/function_call_history.exp index f9e3ac1..6de1615 100644 --- a/gdb/testsuite/gdb.btrace/function_call_history.exp +++ b/gdb/testsuite/gdb.btrace/function_call_history.exp @@ -17,15 +17,18 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -# check for btrace support -if { [skip_btrace_tests] } { return -1 } +if { [skip_btrace_tests] } { + unsupported "target does not support record-btrace" + return -1 +} -# start inferior standard_testfile if [prepare_for_testing "failed to prepare" $testfile {} {debug}] { return -1 } + if ![runto_main] { + untested "failed to run to main" return -1 } @@ -226,6 +229,7 @@ gdb_test "record function-call-history /c 21, +11" [multi_line \ # make sure we can handle incomplete trace with respect to indentation if ![runto_main] { + untested "failed to run to main" return -1 } # navigate to the fib in line 24 above diff --git a/gdb/testsuite/gdb.btrace/gcore.exp b/gdb/testsuite/gdb.btrace/gcore.exp index 3792a9d..d6b311b 100644 --- a/gdb/testsuite/gdb.btrace/gcore.exp +++ b/gdb/testsuite/gdb.btrace/gcore.exp @@ -17,16 +17,18 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -# check for btrace support -if { [skip_btrace_tests] } { return -1 } +if { [skip_btrace_tests] } { + unsupported "target does not support record-btrace" + return -1 +} -# start inferior standard_testfile record_goto.c if [prepare_for_testing "failed to prepare" $testfile $srcfile] { return -1 } if ![runto_main] { + untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/instruction_history.exp b/gdb/testsuite/gdb.btrace/instruction_history.exp index 905f76c..b5d6d3b 100644 --- a/gdb/testsuite/gdb.btrace/instruction_history.exp +++ b/gdb/testsuite/gdb.btrace/instruction_history.exp @@ -17,15 +17,18 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -# check for btrace support -if { [skip_btrace_tests] } { return -1 } +if { [skip_btrace_tests] } { + unsupported "target does not support record-btrace" + return -1 +} -# compile and run to main standard_testfile .c .S if [prepare_for_testing "failed to prepare" $testfile "$srcfile $srcfile2" {debug}] { return -1 } + if ![runto_main] { + untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/multi-thread-step.exp b/gdb/testsuite/gdb.btrace/multi-thread-step.exp index d86fb0a..e926a98 100644 --- a/gdb/testsuite/gdb.btrace/multi-thread-step.exp +++ b/gdb/testsuite/gdb.btrace/multi-thread-step.exp @@ -17,17 +17,20 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -# check for btrace support -if { [skip_btrace_tests] } { return -1 } +if { [skip_btrace_tests] } { + unsupported "target does not support record-btrace" + return -1 +} -# start inferior standard_testfile if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" "$binfile" executable {debug}] != "" } { + untested "failed to prepare" return -1 } clean_restart $testfile if ![runto_main] { + untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/nohist.exp b/gdb/testsuite/gdb.btrace/nohist.exp index 51f7e5a..f05fbbb 100644 --- a/gdb/testsuite/gdb.btrace/nohist.exp +++ b/gdb/testsuite/gdb.btrace/nohist.exp @@ -17,16 +17,18 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -# check for btrace support -if { [skip_btrace_tests] } { return -1 } +if { [skip_btrace_tests] } { + unsupported "target does not support record-btrace" + return -1 +} -# start inferior standard_testfile record_goto.c if [prepare_for_testing "failed to prepare" $testfile $srcfile] { return -1 } if ![runto_main] { + untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/non-stop.exp b/gdb/testsuite/gdb.btrace/non-stop.exp index cf27160..cda15e2 100644 --- a/gdb/testsuite/gdb.btrace/non-stop.exp +++ b/gdb/testsuite/gdb.btrace/non-stop.exp @@ -15,13 +15,14 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -# check for btrace support -if { [skip_btrace_tests] } { return -1 } - +if { [skip_btrace_tests] } { + unsupported "target does not support record-btrace" + return -1 +} -# start inferior standard_testfile if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" "$binfile" executable {debug}] != "" } { + untested "failed to prepare" return -1 } clean_restart $testfile @@ -29,6 +30,7 @@ clean_restart $testfile gdb_test_no_output "set non-stop on" if ![runto_main] { + untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/reconnect.exp b/gdb/testsuite/gdb.btrace/reconnect.exp index 4538934..a9269af 100644 --- a/gdb/testsuite/gdb.btrace/reconnect.exp +++ b/gdb/testsuite/gdb.btrace/reconnect.exp @@ -19,8 +19,14 @@ load_lib gdbserver-support.exp -if { [skip_btrace_tests] } { return -1 } -if { [skip_gdbserver_tests] } { return -1 } +if { [skip_btrace_tests] } { + unsupported "target does not support record-btrace" + return -1 +} +if { [skip_gdbserver_tests] } { + unsupported "target does not support gdbserver" + return -1 +} standard_testfile if [prepare_for_testing "failed to prepare" $testfile $srcfile] { diff --git a/gdb/testsuite/gdb.btrace/record_goto-step.exp b/gdb/testsuite/gdb.btrace/record_goto-step.exp index fb6a712..3819ed8 100644 --- a/gdb/testsuite/gdb.btrace/record_goto-step.exp +++ b/gdb/testsuite/gdb.btrace/record_goto-step.exp @@ -17,17 +17,18 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -# check for btrace support -if { [skip_btrace_tests] } { return -1 } +if { [skip_btrace_tests] } { + unsupported "target does not support record-btrace" + return -1 +} standard_testfile record_goto.c - -# start inferior if [prepare_for_testing "failed to prepare" $testfile $srcfile] { return -1 } if ![runto_main] { + untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/record_goto.exp b/gdb/testsuite/gdb.btrace/record_goto.exp index 34763e5..341da7b 100644 --- a/gdb/testsuite/gdb.btrace/record_goto.exp +++ b/gdb/testsuite/gdb.btrace/record_goto.exp @@ -17,8 +17,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -# check for btrace support -if { [skip_btrace_tests] } { return -1 } +if { [skip_btrace_tests] } { + unsupported "target does not support record-btrace" + return -1 +} # The "record goto" command jumps to a specific instruction in the execution # trace. To guarantee that we always get the same execution trace, we use @@ -40,14 +42,16 @@ if [info exists COMPILE] { standard_testfile i686-record_goto.S } } else { - verbose "Skipping ${testfile}." + unsupported "target architecture not supported" return -1 } if [prepare_for_testing "failed to prepare" $testfile $srcfile $opts] { return -1 } + if ![runto_main] { + untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/rn-dl-bind.exp b/gdb/testsuite/gdb.btrace/rn-dl-bind.exp index ee29af3..1add6af 100644 --- a/gdb/testsuite/gdb.btrace/rn-dl-bind.exp +++ b/gdb/testsuite/gdb.btrace/rn-dl-bind.exp @@ -21,15 +21,18 @@ # Test that we can reverse-next over the dynamic linker's symbol # lookup code. -# check for btrace support -if { [skip_btrace_tests] } { return -1 } +if { [skip_btrace_tests] } { + unsupported "target does not support record-btrace" + return -1 +} -# start inferior standard_testfile if [prepare_for_testing "failed to prepare" $testfile $srcfile {c++ debug}] { return -1 } + if ![runto_main] { + untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/segv.exp b/gdb/testsuite/gdb.btrace/segv.exp index 562037a..f146cdc 100644 --- a/gdb/testsuite/gdb.btrace/segv.exp +++ b/gdb/testsuite/gdb.btrace/segv.exp @@ -17,15 +17,17 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -# check for btrace support -if { [skip_btrace_tests] } { return -1 } +if { [skip_btrace_tests] } { + unsupported "target does not support record-btrace" + return -1 +} -# start inferior standard_testfile if [prepare_for_testing "failed to prepare" $testfile $srcfile] { return -1 } if ![runto_main] { + untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/step.exp b/gdb/testsuite/gdb.btrace/step.exp index 4e1b036..3dc1d39 100644 --- a/gdb/testsuite/gdb.btrace/step.exp +++ b/gdb/testsuite/gdb.btrace/step.exp @@ -17,17 +17,18 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -# check for btrace support -if { [skip_btrace_tests] } { return -1 } +if { [skip_btrace_tests] } { + unsupported "target does not support record-btrace" + return -1 +} standard_testfile record_goto.c - -# start inferior if [prepare_for_testing "failed to prepare" $testfile $srcfile] { return -1 } if ![runto_main] { + untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/stepi.exp b/gdb/testsuite/gdb.btrace/stepi.exp index fb32821..6087d86 100644 --- a/gdb/testsuite/gdb.btrace/stepi.exp +++ b/gdb/testsuite/gdb.btrace/stepi.exp @@ -17,8 +17,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -# check for btrace support -if { [skip_btrace_tests] } { return -1 } +if { [skip_btrace_tests] } { + unsupported "target does not support record-btrace" + return -1 +} # This test is stepping on instruction level. To guarantee that we always # get the same execution trace, we use an assembly source file. @@ -38,21 +40,21 @@ if [info exists COMPILE] { standard_testfile i686-record_goto.S } } else { - verbose "Skipping ${testfile}." + unsupported "target architecture not supported" return -1 } -# start inferior if [prepare_for_testing "failed to prepare" $testfile $srcfile] { return -1 } -global gdb_prompt - if ![runto_main] { + untested "failed to run to main" return -1 } +global gdb_prompt + proc check_replay_at { insn } { gdb_test "info record" [multi_line \ "Active record target: record-btrace" \ diff --git a/gdb/testsuite/gdb.btrace/tailcall-only.exp b/gdb/testsuite/gdb.btrace/tailcall-only.exp index 75116c9..c5b29a9 100644 --- a/gdb/testsuite/gdb.btrace/tailcall-only.exp +++ b/gdb/testsuite/gdb.btrace/tailcall-only.exp @@ -20,8 +20,10 @@ # calls. This used to cause a crash in get_frame_type. # -# check for btrace support -if { [skip_btrace_tests] } { return -1 } +if { [skip_btrace_tests] } { + unsupported "target does not support record-btrace" + return -1 +} # This test requires the compiler to generate a tail call. To guarantee that # we always get one, we use an assembly source file. @@ -42,14 +44,16 @@ if [info exists COMPILE] { standard_testfile i686-tailcall-only.S } } else { - verbose "Skipping ${testfile}." + unsupported "target architecture not supported" return -1 } if [prepare_for_testing "failed to prepare" $testfile $srcfile $opts] { return -1 } + if ![runto_main] { + untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/tailcall.exp b/gdb/testsuite/gdb.btrace/tailcall.exp index 623ca15..4f70c7c 100644 --- a/gdb/testsuite/gdb.btrace/tailcall.exp +++ b/gdb/testsuite/gdb.btrace/tailcall.exp @@ -17,8 +17,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -# check for btrace support -if { [skip_btrace_tests] } { return -1 } +if { [skip_btrace_tests] } { + unsupported "target does not support record-btrace" + return -1 +} # This test requires the compiler to generate a tail call. To guarantee that # we always get one, we use an assembly source file. @@ -39,7 +41,7 @@ if [info exists COMPILE] { standard_testfile i686-tailcall.S } } else { - verbose "Skipping ${testfile}." + unsupported "target architecture not supported" return -1 } @@ -47,6 +49,7 @@ if [prepare_for_testing "failed to prepare" $testfile $srcfile $opts] { return -1 } if ![runto_main] { + untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/tsx.exp b/gdb/testsuite/gdb.btrace/tsx.exp index da3a939..014acf6 100644 --- a/gdb/testsuite/gdb.btrace/tsx.exp +++ b/gdb/testsuite/gdb.btrace/tsx.exp @@ -15,15 +15,23 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -if { [skip_btrace_pt_tests] } { return -1 } -if { [skip_tsx_tests] } { return -1 } +if { [skip_btrace_pt_tests] } { + unsupported "target does not support PT" + return -1 +} + +if { [skip_tsx_tests] } { + unsupported "target does not support TSX" + return -1 +} -# compile and run to main standard_testfile .c x86-tsx.S if [prepare_for_testing "failed to prepare" $testfile "$srcfile $srcfile2" {debug}] { return -1 } + if ![runto_main] { + untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/unknown_functions.exp b/gdb/testsuite/gdb.btrace/unknown_functions.exp index 22ab7ba..7b5ea27 100644 --- a/gdb/testsuite/gdb.btrace/unknown_functions.exp +++ b/gdb/testsuite/gdb.btrace/unknown_functions.exp @@ -17,10 +17,11 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -# check for btrace support -if { [skip_btrace_tests] } { return -1 } +if { [skip_btrace_tests] } { + unsupported "target does not support record-btrace" + return -1 +} -# start inferior standard_testfile # discard local symbols @@ -28,7 +29,9 @@ set ldflags "additional_flags=-Wl,-x" if [prepare_for_testing "failed to prepare" $testfile $srcfile $ldflags] { return -1 } + if ![runto test] { + untested "failed to run to main" return -1 } diff --git a/gdb/testsuite/gdb.btrace/vdso.exp b/gdb/testsuite/gdb.btrace/vdso.exp index d5f6d99..283d920 100644 --- a/gdb/testsuite/gdb.btrace/vdso.exp +++ b/gdb/testsuite/gdb.btrace/vdso.exp @@ -20,15 +20,18 @@ # # Test that we can access the vdso memory during replay for stepping. -# check for btrace support -if { [skip_btrace_tests] } { return -1 } +if { [skip_btrace_tests] } { + unsupported "target does not support record-btrace" + return -1 +} -# start inferior standard_testfile if [prepare_for_testing "failed to prepare" $testfile $srcfile] { return -1 } + if ![runto_main] { + untested "failed to run to main" return -1 } |