Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tests on Windows #251

Merged
merged 3 commits into from
Mar 7, 2022
Merged

Fix tests on Windows #251

merged 3 commits into from
Mar 7, 2022

Conversation

talex5
Copy link
Contributor

@talex5 talex5 commented Feb 28, 2022

Can't use a Unix domain socket there, so use TCP on 127.0.0.1 instead. Also, report Closed for Unix.ECONNRESET too to avoid an unnecessary warning.

Can't use a Unix domain socket there, so use TCP on 127.0.0.1 instead.
Also, report `Closed` for `Unix.ECONNRESET` too to avoid an unnecessary
warning.
@talex5 talex5 mentioned this pull request Feb 28, 2022
@MisterDA
Copy link
Contributor

I've added support for Unix domain sockets on Windows in OCaml 4.14, but I would try to use one for standard input/output. Could be interesting to use capnp to test the support further.

On Windows, the "Broken ref" test was failing with:

    Failure "recv: Unix.Unix_error(Unix.ECONNRESET, \"write\", \"\")"
On Windows, it seems that we see the connection close immediately,
without first reading the goodbye message.
@talex5 talex5 merged commit 1650bf1 into mirage:master Mar 7, 2022
@talex5 talex5 deleted the fix-win-ci branch March 7, 2022 15:59
talex5 added a commit to talex5/opam-repository that referenced this pull request Feb 23, 2023
…age and capnp-rpc-lwt (1.2.3)

CHANGES:

- Update to cmdliner 1.1.0 (@MisterDA mirage/capnp-rpc#249).

- Fix tests on Windows, avoid using Unix domain sockets (@talex5 mirage/capnp-rpc#251).

- Fix warning on `Unix.ENOTCONN` under macos (@talex5 mirage/capnp-rpc#252).

- Add `Capnp_rpc_unix.Cap_file.save_uri` (@talex5 mirage/capnp-rpc#253).

- Update README to use MDX (@talex5 mirage/capnp-rpc#254).

- Update tests to Cap'n Proto 0.10.3 (@MisterDA mirage/capnp-rpc#257 mirage/capnp-rpc#260).

- Update to mirage-crypto-rng 0.11 and dns 7.0.0 API changes (@hannesm mirage/capnp-rpc#261).

- Update for opam 2.1+ installations (@frumioj mirage/capnp-rpc#259).

- Install Cap'n Proto binaries in Windows GHA (@MisterDA mirage/capnp-rpc#248).
talex5 added a commit to talex5/opam-repository that referenced this pull request Feb 23, 2023
…age and capnp-rpc-lwt (1.2.3)

CHANGES:

- Update to cmdliner 1.1.0 (@MisterDA mirage/capnp-rpc#249).

- Fix tests on Windows, avoid using Unix domain sockets (@talex5 mirage/capnp-rpc#251).

- Fix warning on `Unix.ENOTCONN` under macos (@talex5 mirage/capnp-rpc#252).

- Add `Capnp_rpc_unix.Cap_file.save_uri` (@talex5 mirage/capnp-rpc#253).

- Update README to use MDX (@talex5 mirage/capnp-rpc#254).

- Update tests to Cap'n Proto 0.10.3 (@MisterDA mirage/capnp-rpc#257 mirage/capnp-rpc#260).

- Update to mirage-crypto-rng 0.11 and dns 7.0.0 API changes (@hannesm mirage/capnp-rpc#261).

- Update for opam 2.1+ installations (@frumioj mirage/capnp-rpc#259).

- Install Cap'n Proto binaries in Windows GHA (@MisterDA mirage/capnp-rpc#248).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants