From: Hans-Peter Nilsson Date: Mon, 14 Feb 2022 22:53:23 +0000 (+0100) Subject: sim/testsuite/cris: If failing compilation, mark C tests as errors X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=234f5865faa6fa6ecca72a5b576cb063ab86a46f;p=binutils-gdb.git 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. --- 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 }