aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
Diffstat (limited to 'sim')
-rw-r--r--sim/testsuite/cris/c/c.exp5
-rw-r--r--sim/testsuite/cris/hw/rv-n-cris/rvc.exp4
2 files changed, 9 insertions, 0 deletions
diff --git a/sim/testsuite/cris/c/c.exp b/sim/testsuite/cris/c/c.exp
index bd51d73..25d812ea 100644
--- a/sim/testsuite/cris/c/c.exp
+++ b/sim/testsuite/cris/c/c.exp
@@ -94,6 +94,11 @@ foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.c]] {
continue
}
+ if ![file exists [sim_tool_path]] {
+ untested $testname
+ return 0
+ }
+
# Clear default options
set opts(cc) ""
set opts(sim) ""
diff --git a/sim/testsuite/cris/hw/rv-n-cris/rvc.exp b/sim/testsuite/cris/hw/rv-n-cris/rvc.exp
index 42de37d..847d906 100644
--- a/sim/testsuite/cris/hw/rv-n-cris/rvc.exp
+++ b/sim/testsuite/cris/hw/rv-n-cris/rvc.exp
@@ -24,6 +24,10 @@ proc sim_has_rv_and_cris {} {
global objdir
global SIMFLAGS_FOR_TARGET
+ if ![file exists [sim_tool_path]] {
+ return 0
+ }
+
# We need to assemble and link a trivial program and pass that, in
# order to test successful exit.