Skip to content

Commit

Permalink
Add test for error case
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolás Ojeda Bär <n.oje.bar@gmail.com>
  • Loading branch information
nojb committed Aug 20, 2019
1 parent fda8cd1 commit 0112d43
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/blackbox-tests/test-cases/exes-with-c/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,22 @@

$ _build/default/bb.exe
B

$ mkdir err
$ touch err/foo.ml err/stubs.c
$ cat > err/dune << EOF
> (executable
> (name foo)
> (c_names stubs))
> EOF
$ dune build --root err @all
Entering directory 'err'
Info: Creating file dune-project with this contents:
| (lang dune 2.0)
File "dune", line 1, characters 0-41:
1 | (executable
2 | (name foo)
3 | (c_names stubs))
Error: Pure bytecode executables cannot contain C stubs.
Did you forget to add `(modes exe)'?
[1]

0 comments on commit 0112d43

Please sign in to comment.