Clean up gdb.trace test results on targets not supporting this feature.
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.trace / ftrace-lock.exp
index 3e5f0b8712ff10aa9a69f6bcbb660d7cd74ed966..619bd23f1ed0a08e6db5e99f2843c21c71141cb8 100644 (file)
 
 load_lib "trace-support.exp"
 
+if {[skip_shlib_tests]} {
+    return 0
+}
+
 standard_testfile
 set executable $testfile
 set expfile $testfile.exp
@@ -29,6 +33,10 @@ set options [list debug [gdb_target_symbol_prefix_flags] \
             additional_flags=-DNUM_THREADS=$NUM_THREADS]
 
 # 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_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" } {
     untested "failed to compile"
     return -1
This page took 0.026307 seconds and 4 git commands to generate.