Skip to content

Commit f8b3543

Browse files
committed
I think this test is still flakey
re-opens #4922
1 parent 1a8669e commit f8b3543

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lib/std/event/loop.zig

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,9 @@ pub const Loop = struct {
112112
/// have the correct pointer value.
113113
/// https://github.com/ziglang/zig/issues/2761 and https://github.com/ziglang/zig/issues/2765
114114
pub fn init(self: *Loop) !void {
115-
if (builtin.single_threaded
116-
or (@hasDecl(root, "event_loop_mode") and root.event_loop_mode == .single_threaded)) {
115+
if (builtin.single_threaded or
116+
(@hasDecl(root, "event_loop_mode") and root.event_loop_mode == .single_threaded))
117+
{
117118
return self.initSingleThreaded();
118119
} else {
119120
return self.initMultiThreaded();
@@ -1257,6 +1258,11 @@ test "std.event.Loop - basic" {
12571258
// https://github.com/ziglang/zig/issues/1908
12581259
if (builtin.single_threaded) return error.SkipZigTest;
12591260

1261+
if (true) {
1262+
// https://github.com/ziglang/zig/issues/4922
1263+
return error.SkipZigTest;
1264+
}
1265+
12601266
var loop: Loop = undefined;
12611267
try loop.initMultiThreaded();
12621268
defer loop.deinit();

0 commit comments

Comments
 (0)