Skip to content

Commit

Permalink
Fix #3347
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
  • Loading branch information
jeremiedimino committed Apr 9, 2020
1 parent a64da01 commit 6e6488a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ Unreleased
- Add a `(subdir ..)` stanza to allow evaluating stanzas in sub directories.
(#3268, @rgrinberg)

- Fix a bug preventing one from running inline tests in multiple modes
(#3348, @diml)

2.4.0 (06/03/2020)
------------------

Expand Down
2 changes: 1 addition & 1 deletion src/dune/inline_tests.ml
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ include Sub_system.Register_end_point (struct
| Javascript -> Some "node"
in
SC.add_alias_action sctx ~dir ~loc:(Some info.loc) (Alias.runtest ~dir)
~stamp:("ppx-runner", name)
~stamp:("ppx-runner", name, mode)
(let exe =
Path.build (Path.Build.relative inline_test_dir (name ^ ext))
in
Expand Down
9 changes: 4 additions & 5 deletions test/blackbox-tests/test-cases/inline_tests-multi-mode/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ Reproduction case for #3347
$ touch test.ml

$ dune runtest
Error: Multiple rules generated for
_build/.aliases/default/runtest-35bbbc336be45723611745d39daa46eb:
- dune:5
- dune:5
[1]
run alias runtest
Test byte
run alias runtest
Test native

0 comments on commit 6e6488a

Please sign in to comment.