summaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2022-02-14 23:53:23 +0100
committerHans-Peter Nilsson <hp@bitrange.com>2022-02-14 23:53:23 +0100
commit234f5865faa6fa6ecca72a5b576cb063ab86a46f (patch)
treee148735bbe7c3d921c1045ce3cfa21e6962af89d /sim
parent4b0e74fd1813aeb302cd97024d9e82a29282fb8d (diff)
sim/testsuite/cris: If failing compilation, mark C tests as errors
...when we know we have a working compiler. This will reduce the risk of faulty edits by exposing them rather than hiding them as "unresolved". It also harmonizes behavior with that of run_sim_test. * c/c.exp: Mark C tests failing compilation test errors.
Diffstat (limited to 'sim')
-rw-r--r--sim/testsuite/cris/c/c.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/testsuite/cris/c/c.exp b/sim/testsuite/cris/c/c.exp
index 3e186e072d..ffeccc8718 100644
--- a/sim/testsuite/cris/c/c.exp
+++ b/sim/testsuite/cris/c/c.exp
@@ -184,7 +184,7 @@ foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.c]] {
verbose -log "Compiling $src with $opts(cc)"
if { [target_compile $src "$objdir/$testname.x" "executable" "$opts(cc)" ] != "" } {
- unresolved $testname
+ fail "$mach $testname (compilation)"
continue
}