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/dlopen.exp | |
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/dlopen.exp')
-rw-r--r-- | gdb/testsuite/gdb.btrace/dlopen.exp | 16 |
1 files changed, 12 insertions, 4 deletions
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 |