sim/testsuite/cris: If failing compilation, mark C tests as errors
authorHans-Peter Nilsson <hp@axis.com>
Mon, 14 Feb 2022 22:53:23 +0000 (23:53 +0100)
committerHans-Peter Nilsson <hp@bitrange.com>
Mon, 14 Feb 2022 22:53:23 +0000 (23:53 +0100)
...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.

sim/testsuite/cris/c/c.exp

index 3e186e072d8e53f70ba21d0bf6e75d3a4354c87d..ffeccc8718641693f30a4e7671137f3636e46072 100644 (file)
@@ -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
     }