aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/error.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2023-03-13 21:12:57 -0400
committerJacob Young <jacobly0@users.noreply.github.com>2023-03-15 01:04:21 -0400
commitc51930b060cf66b21c78b97e53fd71b153a5e60c (patch)
tree14b21f48fa4e07f2abee9265384535bb0a79e668 /test/behavior/error.zig
parent5ab426a3020614dcc8640a4019c8d93c6c917ea0 (diff)
downloadzig-c51930b060cf66b21c78b97e53fd71b153a5e60c.tar.gz
zig-c51930b060cf66b21c78b97e53fd71b153a5e60c.zip
behavior: enable passing behavior tests on stage2_x86_64
Diffstat (limited to 'test/behavior/error.zig')
-rw-r--r--test/behavior/error.zig10
1 files changed, 0 insertions, 10 deletions
diff --git a/test/behavior/error.zig b/test/behavior/error.zig
index f30290eb91..9d4b154311 100644
--- a/test/behavior/error.zig
+++ b/test/behavior/error.zig
@@ -144,15 +144,11 @@ test "implicit cast to optional to error union to return result loc" {
}
test "fn returning empty error set can be passed as fn returning any error" {
- if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO
-
entry();
comptime entry();
}
test "fn returning empty error set can be passed as fn returning any error - pointer" {
- if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO
-
entryPtr();
comptime entryPtr();
}
@@ -219,7 +215,6 @@ fn testErrorSetType() !void {
}
test "explicit error set cast" {
- if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
try testExplicitErrorSetCast(Set1.A);
@@ -238,7 +233,6 @@ fn testExplicitErrorSetCast(set1: Set1) !void {
}
test "comptime test error for empty error set" {
- if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
try testComptimeTestErrorEmptySet(1234);
@@ -255,8 +249,6 @@ fn testComptimeTestErrorEmptySet(x: EmptyErrorSet!i32) !void {
}
test "comptime err to int of error set with only 1 possible value" {
- if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO
-
testErrToIntWithOnePossibleValue(error.A, @errorToInt(error.A));
comptime testErrToIntWithOnePossibleValue(error.A, @errorToInt(error.A));
}
@@ -426,7 +418,6 @@ test "nested error union function call in optional unwrap" {
}
test "return function call to error set from error union function" {
- if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
@@ -486,7 +477,6 @@ test "nested catch" {
}
test "function pointer with return type that is error union with payload which is pointer of parent struct" {
- if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
const S = struct {