aboutsummaryrefslogtreecommitdiff
path: root/test/tests.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2023-10-20 17:52:34 -0400
committerJacob Young <jacobly0@users.noreply.github.com>2023-10-21 10:55:41 -0400
commit70c8e7f91dcfdc908bcb41311b24cb2e150182d0 (patch)
treeb9db9bc2814383a2931175f13a7c514dcafe1438 /test/tests.zig
parent32e85d44eb72122d174de02d4020f149026dd787 (diff)
downloadzig-70c8e7f91dcfdc908bcb41311b24cb2e150182d0.tar.gz
zig-70c8e7f91dcfdc908bcb41311b24cb2e150182d0.zip
x86_64: disable failing tests, enable test-compiler-rt testing
Diffstat (limited to 'test/tests.zig')
-rw-r--r--test/tests.zig6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/tests.zig b/test/tests.zig
index 479fe98230..d393c39a08 100644
--- a/test/tests.zig
+++ b/test/tests.zig
@@ -985,7 +985,9 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step {
continue;
// TODO get compiler-rt tests passing for self-hosted backends.
- if (test_target.use_llvm == false and mem.eql(u8, options.name, "compiler-rt"))
+ if ((test_target.target.getCpuArch() != .x86_64 or
+ test_target.target.getObjectFormat() != .elf) and
+ test_target.use_llvm == false and mem.eql(u8, options.name, "compiler-rt"))
continue;
// TODO get compiler-rt tests passing for wasm32-wasi
@@ -1004,7 +1006,7 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step {
// TODO get std lib tests passing for other self-hosted backends.
if ((test_target.target.getCpuArch() != .x86_64 or
- test_target.target.os_tag != .linux) and
+ test_target.target.getObjectFormat() != .elf) and
test_target.use_llvm == false and mem.eql(u8, options.name, "std"))
continue;