From e8e305b67ce4993a3789e0e3e8baa6064de45114 Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Wed, 9 Jun 2021 23:11:34 +0200 Subject: [PATCH] Re-enable multiple wasm32 vector tests Fixes #5339 --- lib/std/fmt.zig | 4 ---- test/behavior/shuffle.zig | 3 --- test/behavior/vector.zig | 3 --- 3 files changed, 10 deletions(-) diff --git a/lib/std/fmt.zig b/lib/std/fmt.zig index 50def46838..b183cad2bc 100644 --- a/lib/std/fmt.zig +++ b/lib/std/fmt.zig @@ -2412,10 +2412,6 @@ test "vector" { // https://github.com/ziglang/zig/issues/4486 return error.SkipZigTest; } - if (builtin.target.cpu.arch == .wasm32) { - // https://github.com/ziglang/zig/issues/5339 - return error.SkipZigTest; - } const vbool: std.meta.Vector(4, bool) = [_]bool{ true, false, true, false }; const vi64: std.meta.Vector(4, i64) = [_]i64{ -2, -1, 0, 1 }; diff --git a/test/behavior/shuffle.zig b/test/behavior/shuffle.zig index 5db3a993ee..3ccfc50f0b 100644 --- a/test/behavior/shuffle.zig +++ b/test/behavior/shuffle.zig @@ -5,9 +5,6 @@ const expect = std.testing.expect; const Vector = std.meta.Vector; test "@shuffle" { - // TODO investigate why this fails when cross-compiling to wasm. - if (builtin.os.tag == .wasi) return error.SkipZigTest; - const S = struct { fn doTheTest() !void { var v: Vector(4, i32) = [4]i32{ 2147483647, -2, 30, 40 }; diff --git a/test/behavior/vector.zig b/test/behavior/vector.zig index a41e0510c7..77793b67e6 100644 --- a/test/behavior/vector.zig +++ b/test/behavior/vector.zig @@ -412,9 +412,6 @@ test "vector bitwise not operator" { } test "vector shift operators" { - // TODO investigate why this fails when cross-compiled to wasm. - if (builtin.target.os.tag == .wasi) return error.SkipZigTest; - const S = struct { fn doTheTestShift(x: anytype, y: anytype) !void { const N = @typeInfo(@TypeOf(x)).Array.len;