Skip to content

Commit bdf68ed

Browse files
committed
Tentative fix for inline tests in bytecode mode
1 parent d8f85fe commit bdf68ed

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

Diff for: src/dune_rules/inline_tests.ml

+2-2
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ include Sub_system.Register_end_point (struct
167167
match mode with
168168
| Native -> Exe.Linkage.native
169169
| Best -> Exe.Linkage.native_or_custom (Super_context.context sctx)
170-
| Byte -> Exe.Linkage.byte
170+
| Byte -> Exe.Linkage.custom (Super_context.context sctx)
171171
| Javascript -> Exe.Linkage.js)
172172
in
173173
let* () =
@@ -212,7 +212,7 @@ include Sub_system.Register_end_point (struct
212212
match mode with
213213
| Native | Best -> ".exe"
214214
| Javascript -> ".bc.js"
215-
| Byte -> ".bc"
215+
| Byte -> ".exe"
216216
in
217217
let custom_runner =
218218
match mode with

Diff for: test/blackbox-tests/test-cases/inline_tests-byte.t

+1-7
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,4 @@ Reproduction case for #5515
2626
> EOF
2727

2828
$ dune test
29-
File "dune", line 4, characters 1-28:
30-
4 | (inline_tests (modes byte))
31-
^^^^^^^^^^^^^^^^^^^^^^^^^^^
32-
You are doing something unexpected with the tests. No tests have
33-
been run. You should use the inline_tests_runner script to run
34-
tests.
35-
[1]
29+
byte

0 commit comments

Comments
 (0)