Skip to content

Commit 67e6df4

Browse files
mluggandrewrk
authored andcommitted
tests: remove more old async tests
The rejection of #6025 indicates that if stackless coroutines return to Zig, they will look quite different; see #23446 for the working draft proposal for their return (though it will definitely be tweaked before being accepted). Some of this test coverage was deleted in 40d11cc, but because stackless coroutines will take on a new form if re-introduced, I anticipate that essentially *none* of this coverage will be relevant. Of course, if it for some reason is, we can always grab it from the Git history.
1 parent 69cf40d commit 67e6df4

11 files changed

+0
-158
lines changed

test/behavior/type_info.zig

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -539,20 +539,6 @@ fn add(a: i32, b: i32) i32 {
539539
return a + b;
540540
}
541541

542-
test "type info for async frames" {
543-
if (true) {
544-
// https://github.com/ziglang/zig/issues/6025
545-
return error.SkipZigTest;
546-
}
547-
548-
switch (@typeInfo(@Frame(add))) {
549-
.frame => |frame| {
550-
try expect(@as(@TypeOf(add), @ptrCast(frame.function)) == add);
551-
},
552-
else => unreachable,
553-
}
554-
}
555-
556542
test "Declarations are returned in declaration order" {
557543
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
558544
if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest;

test/cases/compile_errors/async/Frame_of_generic_function.zig

Lines changed: 0 additions & 14 deletions
This file was deleted.

test/cases/compile_errors/async/bad_alignment_in_asynccall.zig

Lines changed: 0 additions & 13 deletions
This file was deleted.

test/cases/compile_errors/async/exported_async_function.zig

Lines changed: 0 additions & 7 deletions
This file was deleted.

test/cases/compile_errors/async/frame_called_outside_of_function_definition.zig

Lines changed: 0 additions & 11 deletions
This file was deleted.

test/cases/compile_errors/async/frame_causes_function_to_be_async.zig

Lines changed: 0 additions & 13 deletions
This file was deleted.

test/cases/compile_errors/async/non-async_function_pointer_eventually_is_inferred_to_become_async.zig

Lines changed: 0 additions & 15 deletions
This file was deleted.

test/cases/compile_errors/async/non_async_function_pointer_passed_to_asyncCall.zig

Lines changed: 0 additions & 13 deletions
This file was deleted.

test/cases/compile_errors/async/prevent_bad_implicit_casting_of_anyframe_types.zig

Lines changed: 0 additions & 24 deletions
This file was deleted.

test/cases/compile_errors/async/wrong_type_for_argument_tuple_to_asyncCall.zig

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)