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.
This commit is contained in:
Hans-Peter Nilsson
2022-02-14 23:53:23 +01:00
committed by Hans-Peter Nilsson
parent 4b0e74fd18
commit 234f5865fa

View File

@ -184,7 +184,7 @@ foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.c]] {
verbose -log "Compiling $src with $opts(cc)" verbose -log "Compiling $src with $opts(cc)"
if { [target_compile $src "$objdir/$testname.x" "executable" "$opts(cc)" ] != "" } { if { [target_compile $src "$objdir/$testname.x" "executable" "$opts(cc)" ] != "" } {
unresolved $testname fail "$mach $testname (compilation)"
continue continue
} }