diff --git a/sim/testsuite/ChangeLog b/sim/testsuite/ChangeLog index 8876c386ae..113b6d5622 100644 --- a/sim/testsuite/ChangeLog +++ b/sim/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2021-04-08 Mike Frysinger + + * lib/sim-defs.exp (run_sim_test): Return if sim_tool_path does not + exist. + 2021-04-08 Mike Frysinger * lib/sim-defs.exp (sim_tool_path): New function. diff --git a/sim/testsuite/lib/sim-defs.exp b/sim/testsuite/lib/sim-defs.exp index 1b40216ea6..e627b6efc5 100644 --- a/sim/testsuite/lib/sim-defs.exp +++ b/sim/testsuite/lib/sim-defs.exp @@ -205,6 +205,11 @@ proc run_sim_test { name requested_machs } { global global_cc_options global global_sim_options + if ![file exists [sim_tool_path]] { + unsupported "$name: missing simulator [sim_tool_path]" + return + } + if [string match "*/*" $name] { set file $name set name [file tail $name]