Skip to content

Commit

Permalink
spirv: enable passing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Snektron committed Mar 18, 2024
1 parent 4020b91 commit 2f9e37a
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 14 deletions.
1 change: 0 additions & 1 deletion test/behavior/byval_arg_var.zig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ var result: []const u8 = "wrong";

test "pass string literal byvalue to a generic var param" {
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;

start();
blowUpStack(10);
Expand Down
1 change: 0 additions & 1 deletion test/behavior/cast.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1252,7 +1252,6 @@ test "implicit cast from *T to ?*anyopaque" {
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;

var a: u8 = 1;
incrementVoidPtrValue(&a);
Expand Down
2 changes: 0 additions & 2 deletions test/behavior/error.zig
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ test "debug info for optional error set" {

test "implicit cast to optional to error union to return result loc" {
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;

const S = struct {
fn entry() !void {
Expand Down Expand Up @@ -951,7 +950,6 @@ test "returning an error union containing a type with no runtime bits" {
test "try used in recursive function with inferred error set" {
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; // TODO

const Value = union(enum) {
values: []const @This(),
Expand Down
2 changes: 0 additions & 2 deletions test/behavior/floatop.zig
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ test "cmp f16" {
test "cmp f32/f64" {
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_x86_64 and builtin.target.ofmt != .elf and builtin.target.ofmt != .macho) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;

try testCmp(f32);
try comptime testCmp(f32);
Expand Down Expand Up @@ -979,7 +978,6 @@ test "@abs f32/f64" {
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;

try testFabs(f32);
try comptime testFabs(f32);
Expand Down
3 changes: 0 additions & 3 deletions test/behavior/optional.zig
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,13 @@ pub const EmptyStruct = struct {};

test "optional pointer to size zero struct" {
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;

var e = EmptyStruct{};
const o: ?*EmptyStruct = &e;
try expect(o != null);
}

test "equality compare optional pointers" {
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;

try testNullPtrsEql();
try comptime testNullPtrsEql();
}
Expand Down
1 change: 0 additions & 1 deletion test/behavior/pointers.zig
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ test "assign null directly to C pointer and test null equality" {
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;

var x: [*c]i32 = null;
_ = &x;
Expand Down
2 changes: 0 additions & 2 deletions test/behavior/vector.zig
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,6 @@ test "load vector elements via comptime index" {
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;

const S = struct {
fn doTheTest() !void {
Expand All @@ -394,7 +393,6 @@ test "store vector elements via comptime index" {
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;

const S = struct {
fn doTheTest() !void {
Expand Down
2 changes: 0 additions & 2 deletions test/behavior/while.zig
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ fn staticWhileLoop2() i32 {
}

test "while with continue expression" {
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; // TODO

var sum: i32 = 0;
{
var i: i32 = 0;
Expand Down

0 comments on commit 2f9e37a

Please sign in to comment.