Skip to content

Commit

Permalink
Skip tests by os_type
Browse files Browse the repository at this point in the history
  • Loading branch information
polytypic committed Aug 21, 2023
1 parent 3618cf7 commit a383832
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ To avoid this problem, you can use `Eio.Exn.Backend.show`

to hide the backend-specific part of errors:

<!-- $MDX skip -->
<!-- $MDX os_type<>Win32 -->
```ocaml
# Eio_main.run @@ fun env ->
let net = Eio.Stdenv.net env in
Expand Down Expand Up @@ -887,7 +887,7 @@ perhaps with `open_dir` to constrain all access to be within that directory.

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

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

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

<!-- $MDX non-deterministic=command -->
<!-- $MDX os_type<>Win32 -->
```ocaml
# Eio_main.run @@ fun env ->
let proc_mgr = Eio.Stdenv.process_mgr env in
Expand All @@ -922,7 +922,7 @@ or use the `parse_out` convenience wrapper:

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

<!-- $MDX non-deterministic=command -->
<!-- $MDX os_type<>Win32 -->
```ocaml
# Eio_main.run @@ fun env ->
let proc_mgr = Eio.Stdenv.process_mgr env in
Expand Down
3 changes: 3 additions & 0 deletions eio.opam
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,6 @@ build: [
]
]
dev-repo: "git+https://github.com/ocaml-multicore/eio.git"
pin-depends: [
[ "mdx.dev" "git+https://github.com/polytypic/mdx.git#7101533dedf90983e760d8a08f8bfeef4fedb89b" ]
]
3 changes: 3 additions & 0 deletions eio.opam.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pin-depends: [
[ "mdx.dev" "git+https://github.com/polytypic/mdx.git#7101533dedf90983e760d8a08f8bfeef4fedb89b" ]
]

0 comments on commit a383832

Please sign in to comment.