File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,16 @@ let skip _stdenv =
44
55open Eio.Std
66
7+ let skip_io_uring msg =
8+ Eio. traceln " Skipping test: %s" msg;
9+ Alcotest. skip ()
10+
11+ let handle_fallback = function
12+ | `Msg msg ->
13+ Eio. traceln " Fallback triggered with message: %s" msg;
14+ skip_io_uring msg
15+
16+
717module Trace = Eio.Private. Trace
818
919let () =
@@ -23,7 +33,7 @@ let read_one_byte ~sw r =
2333 )
2434
2535let test_poll_add () =
26- Eio_linux. run ~fallback: skip ( fun _stdenv ->
36+ Eio_linux. run @@ fun _stdenv ->
2737 Switch. run @@ fun sw ->
2838 let r, w = Eio_unix. pipe sw in
2939 let thread = read_one_byte ~sw r in
@@ -38,8 +48,8 @@ let test_poll_add () =
3848 Alcotest. (check string ) " Received data" " !" result
3949)
4050let test_poll_add_busy () =
41- Eio_linux. run ~queue_depth: 2 ~fallback: skip ( fun _stdenv ->
42- Switch. run @@ fun sw ->
51+ Eio_linux. run ~queue_depth: 2 @@ fun _stdenv ->
52+ Switch. run @@ fun sw ->
4353 let r, w = Eio_unix. pipe sw in
4454 let a = read_one_byte ~sw r in
4555 let b = read_one_byte ~sw r in
You can’t perform that action at this time.
0 commit comments