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

engine: expose skip exception #416

Merged
merged 2 commits into from
Mar 13, 2025
Merged

engine: expose skip exception #416

merged 2 commits into from
Mar 13, 2025

Conversation

Khady
Copy link
Contributor

@Khady Khady commented Dec 23, 2024

Fix #415

@@ -268,4 +268,4 @@ let match_raises ?here ?pos msg exnp f =
Fmt.pf ppf "%t%a %s: got %a." (pp_location ?here ?pos) Pp.tag `Fail
msg Fmt.exn e)

let skip () = raise Core.Skip
let skip () = raise Core.V1.Skip
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't too sure if test.ml was suppose to depend on V1 or not.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yea that's a bit odd and seems unrelated with the rest of the changes?

Copy link
Collaborator

@MisterDA MisterDA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@samoht samoht force-pushed the louis/expose-skip branch from 2c0a936 to 0759dfb Compare March 13, 2025 07:58
@samoht
Copy link
Member

samoht commented Mar 13, 2025

The lower bound issue should be fixed by ocaml/opam-repository#27616

@samoht samoht merged commit b0010be into mirage:main Mar 13, 2025
10 of 12 checks passed
samoht added a commit to samoht/opam-repository that referenced this pull request Mar 13, 2025
CHANGES:

- Add `seq`, a testable for `Seq.t` and `contramap` (mirage/alcotest#412 @xvw)
- Expose the `V1.Skip` exception (mirage/alcotest#415, mirage/alcotest#416, @Khady)
- BREAKING FIX: `match_raises` now expects the user-defined function to return
  true for expected exceptions. Previously false was interpreted as an
  expected exception. (mirage/alcotest#418, mirage/alcotest#419, @psafont)
@Khady Khady deleted the louis/expose-skip branch March 13, 2025 10:37
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.

Expose Skip exception
3 participants