]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.trace/ftrace.exp
Clean up gdb.trace test results on targets not supporting this feature.
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.trace / ftrace.exp
index 5c494c6bb4c96275bccd0f3560103f6f8c617652..959e2affbd3fcd070ee96d4a022fce2af395d2c4 100644 (file)
 
 load_lib "trace-support.exp"
 
+if {[skip_shlib_tests]} {
+    return 0
+}
+
 standard_testfile
 set executable $testfile
 set expfile $testfile.exp
@@ -21,6 +25,11 @@ set expfile $testfile.exp
 # Some targets have leading underscores on assembly symbols.
 set additional_flags [gdb_target_symbol_prefix_flags]
 
+if ![gdb_trace_common_supports_arch] {
+    unsupported "no trace-common.h support for arch"
+    return -1
+}
+
 if [prepare_for_testing "failed to prepare" $executable $srcfile \
        [list debug $additional_flags]] {
     return -1