aboutsummaryrefslogtreecommitdiff
path: root/lib/compiler
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2025-06-29 08:03:59 +0200
committerGitHub <noreply@github.com>2025-06-29 08:03:59 +0200
commit6322dbd5bf112356efdf2ec64c5471d6e8586a74 (patch)
treed6fd887508e79e51e5e142b20099cc6ad29a654b /lib/compiler
parent0adcfd60f4fcfd01c74a6477cbcef187ce06f533 (diff)
parentff06de4c897e0b51c4d1f044746d43397500be69 (diff)
downloadzig-6322dbd5bf112356efdf2ec64c5471d6e8586a74.tar.gz
zig-6322dbd5bf112356efdf2ec64c5471d6e8586a74.zip
compiler: test runner: fix tests never fails on crippled architectures (#24180)
* compiler: test runner: fix tests never fails on crippled architectures * riscv64: skip failing tests * riscv64: enable test summary printing
Diffstat (limited to 'lib/compiler')
-rw-r--r--lib/compiler/test_runner.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/compiler/test_runner.zig b/lib/compiler/test_runner.zig
index adbee7d07d..f9adc002ad 100644
--- a/lib/compiler/test_runner.zig
+++ b/lib/compiler/test_runner.zig
@@ -292,6 +292,7 @@ pub fn mainSimple() anyerror!void {
};
// is the backend capable of using std.fmt.format to print a summary at the end?
const print_summary = switch (builtin.zig_backend) {
+ .stage2_riscv64 => true,
else => false,
};
@@ -309,7 +310,7 @@ pub fn mainSimple() anyerror!void {
stderr.writeAll("... ") catch {};
stderr.writeAll("PASS\n") catch {};
}
- } else |err| if (enable_print) {
+ } else |err| {
if (enable_print) {
stderr.writeAll(test_fn.name) catch {};
stderr.writeAll("... ") catch {};