File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -112,8 +112,9 @@ pub const Loop = struct {
112
112
/// have the correct pointer value.
113
113
/// https://github.com/ziglang/zig/issues/2761 and https://github.com/ziglang/zig/issues/2765
114
114
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
+ {
117
118
return self .initSingleThreaded ();
118
119
} else {
119
120
return self .initMultiThreaded ();
@@ -1257,6 +1258,11 @@ test "std.event.Loop - basic" {
1257
1258
// https://github.com/ziglang/zig/issues/1908
1258
1259
if (builtin .single_threaded ) return error .SkipZigTest ;
1259
1260
1261
+ if (true ) {
1262
+ // https://github.com/ziglang/zig/issues/4922
1263
+ return error .SkipZigTest ;
1264
+ }
1265
+
1260
1266
var loop : Loop = undefined ;
1261
1267
try loop .initMultiThreaded ();
1262
1268
defer loop .deinit ();
You can’t perform that action at this time.
0 commit comments