aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.btrace/tailcall.exp
diff options
context:
space:
mode:
authorMarkus Metzger <markus.t.metzger@intel.com>2016-12-09 13:16:22 +0100
committerMarkus Metzger <markus.t.metzger@intel.com>2017-02-01 14:38:44 +0100
commitb5ac99b0828d4e1dfa33540b428c0fc6c32eda67 (patch)
treeddaf9b5e3c03c705e20a9bcbcbc6f9ff39a58e2e /gdb/testsuite/gdb.btrace/tailcall.exp
parentcd4007e43421a2f974f51574b6e2b52b9b1a7a50 (diff)
downloadgdb-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/tailcall.exp')
-rw-r--r--gdb/testsuite/gdb.btrace/tailcall.exp9
1 files changed, 6 insertions, 3 deletions
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
}