Skip to content

Commit acb2ad5

Browse files
committed
Get MDX tests working on Windows
1 parent 23a1a84 commit acb2ad5

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,12 +752,17 @@ Eio.Io Net Connection_failure Refused Unix_error (Connection refused, "connect",
752752
```
753753

754754
If we ran this using another backend, the `Unix_error` part might change.
755-
To avoid this problem, you can use `Eio.Exn.Backend.show` to hide the backend-specific part of errors:
755+
To avoid this problem, you can use `Eio.Exn.Backend.show`
756756

757757
```ocaml
758758
# Eio.Exn.Backend.show := false;;
759759
- : unit = ()
760+
```
761+
762+
to hide the backend-specific part of errors:
760763

764+
<!-- $MDX skip -->
765+
```ocaml
761766
# Eio_main.run @@ fun env ->
762767
let net = Eio.Stdenv.net env in
763768
Switch.run @@ fun sw ->
@@ -892,6 +897,7 @@ perhaps with `open_dir` to constrain all access to be within that directory.
892897

893898
Spawning a child process can be done using the [Eio.Process][] module:
894899

900+
<!-- $MDX non-deterministic=command -->
895901
```ocaml
896902
# Eio_main.run @@ fun env ->
897903
let proc_mgr = Eio.Stdenv.process_mgr env in
@@ -903,6 +909,7 @@ hello
903909
There are various optional arguments for setting the process's current directory or connecting up the standard streams.
904910
For example, we can use `tr` to convert some text to upper-case:
905911

912+
<!-- $MDX non-deterministic=command -->
906913
```ocaml
907914
# Eio_main.run @@ fun env ->
908915
let proc_mgr = Eio.Stdenv.process_mgr env in
@@ -915,6 +922,7 @@ ONE TWO THREE
915922
If you want to capture the output of a process, you can provide a suitable `Eio.Flow.sink` as the `stdout` argument,
916923
or use the `parse_out` convenience wrapper:
917924

925+
<!-- $MDX non-deterministic=command -->
918926
```ocaml
919927
# Eio_main.run @@ fun env ->
920928
let proc_mgr = Eio.Stdenv.process_mgr env in
@@ -924,6 +932,7 @@ or use the `parse_out` convenience wrapper:
924932

925933
All process functions either return the exit status or check that it was zero (success):
926934

935+
<!-- $MDX non-deterministic=command -->
927936
```ocaml
928937
# Eio_main.run @@ fun env ->
929938
let proc_mgr = Eio.Stdenv.process_mgr env in

dune

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@
22
(package eio_main)
33
(deps (package eio_main) (package kcas) (env_var "EIO_BACKEND"))
44
(preludes doc/prelude.ml)
5-
(enabled_if (<> %{os_type} "Win32"))
65
(files README.md))

0 commit comments

Comments
 (0)