Skip to content

Conversation

edwintorok
Copy link
Contributor

2.0.2 introduced a breaking change (maybe it should've been 3.0): it no longer raises Fd_send_recv.Unix_error, but Unix.Unix_error.
The test code here was specifically catching just Fd_send_recv.Unix_error. Make it catch both.

2.0.2 dropped Fd_send_recv.Unix_error, and only raises Unix.Unix_error (Although the type itself is still present for backwards compatibility).

Catch both exceptions, this now passes on both OCaml 4 and OCaml 5.2.

Eventually we'll want to drop the Fd_send_recv.Unix_error from here and from the library itself once we've updated to it.

Signed-off-by: Edwin Török <[email protected]>
@psafont
Copy link
Member

psafont commented Jul 5, 2024

we should release a 2.0.3, current one is not compatible with ocaml 4

@psafont psafont merged commit edcc894 into xapi-project:master Jul 8, 2024
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.

3 participants