aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBingwu Zhang <xtex@aosc.io>2025-06-14 14:38:32 +0800
committerBingwu Zhang <xtex@aosc.io>2025-06-27 19:12:16 +0800
commit5db395f20bab9766028d98ac51c4f1ea286d2f92 (patch)
treefc9a0f4c5430af0b9c9be76a3d5f303c810b4057 /lib
parent0adcfd60f4fcfd01c74a6477cbcef187ce06f533 (diff)
downloadzig-5db395f20bab9766028d98ac51c4f1ea286d2f92.tar.gz
zig-5db395f20bab9766028d98ac51c4f1ea286d2f92.zip
compiler: test runner: fix tests never fails on crippled architectures
Diffstat (limited to 'lib')
-rw-r--r--lib/compiler/test_runner.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compiler/test_runner.zig b/lib/compiler/test_runner.zig
index adbee7d07d..1ce2fbff3e 100644
--- a/lib/compiler/test_runner.zig
+++ b/lib/compiler/test_runner.zig
@@ -309,7 +309,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 {};