Skip to content

Commit

Permalink
test: enabled_if with dune describe crash (ocaml#10778)
Browse files Browse the repository at this point in the history
Signed-off-by: Alpha DIALLO <moyodiallo@gmail.com>
  • Loading branch information
moyodiallo authored and anmonteiro committed Nov 17, 2024
1 parent 70732e7 commit 8babdb4
Showing 1 changed file with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
$ cat > dune <<EOF
> (executable
> (name test)
> (enabled_if
> (= %{system} unknown)))
> (rule
> (enabled_if
> (= %{system} unknown))
> (alias runtest)
> (action
> (run ./test.exe)))
> EOF

$ cat > test.ml <<EOF
> let () = print_string "Hello world"
> EOF

$ cat > dune-project <<EOF
> (lang dune 3.13)
> (package
> (name pack)
> (allow_empty))
> EOF

$ dune build
$ dune runtest
$ dune describe 2>&1 | head -n 5
Internal error, please report upstream including the contents of _build/log.
Description:
("modules_and_obj_dir: failed lookup",
{ keys = []; for_ = Exe { first_exe = "test" } })
Raised at Stdune__Code_error.raise in file

0 comments on commit 8babdb4

Please sign in to comment.