]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.trace/trace-enable-disable.exp
Clean up gdb.trace test results on targets not supporting this feature.
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.trace / trace-enable-disable.exp
index 1b3ba0b4bdd0548e6212af1c2c924de65bf246fa..01147ccaab8a10d8cdbd3c4013c33b0590a6ef27 100644 (file)
 
 load_lib "trace-support.exp"
 
+if {[skip_shlib_tests]} {
+    return 0
+}
+
 standard_testfile
 set executable $testfile
 set expfile $testfile.exp
@@ -22,6 +26,10 @@ set expfile $testfile.exp
 set options [list debug [gdb_target_symbol_prefix_flags]]
 
 # Check that the target supports trace.
+if ![gdb_trace_common_supports_arch] {
+    unsupported "no trace-common.h support for arch"
+    return -1
+}
 if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" } {
     untested "failed to compile"
     return -1