aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib/selftest-support.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/lib/selftest-support.exp')
-rw-r--r--gdb/testsuite/lib/selftest-support.exp5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/lib/selftest-support.exp b/gdb/testsuite/lib/selftest-support.exp
index c375849..fc4bccc 100644
--- a/gdb/testsuite/lib/selftest-support.exp
+++ b/gdb/testsuite/lib/selftest-support.exp
@@ -119,6 +119,11 @@ proc selftest_setup { executable function } {
proc do_self_tests {function body} {
global GDB tool
+ # Are we on a target board.
+ if { [is_remote target] || ![isnative] } then {
+ return
+ }
+
# Run the test with self. Copy the file executable file in case
# this OS doesn't like to edit its own text space.