From 234f5865faa6fa6ecca72a5b576cb063ab86a46f Mon Sep 17 00:00:00 2001
From: Hans-Peter Nilsson <hp@axis.com>
Date: Mon, 14 Feb 2022 23:53:23 +0100
Subject: [PATCH] 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.
---
 sim/testsuite/cris/c/c.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sim/testsuite/cris/c/c.exp b/sim/testsuite/cris/c/c.exp
index 3e186e072d8..ffeccc87186 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
     }