Skip to content

Commit

Permalink
fix executable test
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <[email protected]>
  • Loading branch information
rgrinberg committed Nov 16, 2020
1 parent d7356c0 commit 65ef4dc
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions test/blackbox-tests/test-cases/root-module.t
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,14 @@ The same for executables:
$ cat >exe/dune <<EOF
> (executable
> (name foo)
> (libraries lib1)
> (root_module root))
> EOF
$ touch exe/lib1.ml
$ echo >exe/lib1.ml <<EOF
> let greeting = ()
> EOF
$ cat >exe/foo.ml <<EOF
> print_endline Root.Lib1.greeting
> EOF
$ dune exec ./exe/foo.exe
File "exe/foo.ml", line 1, characters 14-32:
1 | print_endline Root.Lib1.greeting
^^^^^^^^^^^^^^^^^^
Error: Unbound module Root.Lib1
[1]
Hello World

0 comments on commit 65ef4dc

Please sign in to comment.