Add test for #1102

Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
This commit is contained in:
Rudi Grinberg 2018-08-07 11:48:10 +03:00
parent 0c1809230e
commit 67c6de4864
4 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1 @@
(library (public_name c.find))

View File

@ -0,0 +1 @@
(lang dune 1.1)

View File

@ -17,3 +17,13 @@ executable(s) stanza works the same way
File "dune", line 1, characters 0-36:
Error: name field may not be omitted before dune version 1.1
[1]
there's only a public name but it's invalid as a name
$ dune build --root public-name-invalid-name
Entering directory 'public-name-invalid-name'
ocamlopt .c.find.objs/c.find.{cmx,o} (exit 2)
(cd _build/default && /Users/rgrinberg/.opam/4.06.1/bin/ocamlopt.opt -w @a-4-29-40-41-42-44-45-48-58-59-60-40 -strict-sequence -strict-formats -short-paths -keep-locs -w -49 -g -I .c.find.objs -intf-suffix .ml-gen -no-alias-deps -o .c.find.objs/c.find.cmx -c -impl c.find.ml-gen)
File "c.find.ml-gen", line 1:
Error: Could not find the .cmi file for interface c.find.ml-gen.
[1]