Add a test exposing a name clash
When several private libraries have the same name, jbuilder crashes.
This commit is contained in:
parent
8d0efa347c
commit
f534387ef6
|
@ -134,3 +134,10 @@
|
||||||
(action
|
(action
|
||||||
(chdir test-cases/select
|
(chdir test-cases/select
|
||||||
(setenv JBUILDER ${bin:jbuilder} (run ${exe:cram.exe} run.t))))))
|
(setenv JBUILDER ${bin:jbuilder} (run ${exe:cram.exe} run.t))))))
|
||||||
|
|
||||||
|
(alias
|
||||||
|
((name runtest)
|
||||||
|
(deps ((files_recursively_in test-cases/multiple-private-libs)))
|
||||||
|
(action
|
||||||
|
(chdir test-cases/multiple-private-libs
|
||||||
|
(setenv JBUILDER ${bin:jbuilder} (run ${exe:cram.exe} run.t))))))
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
(jbuild_version 1)
|
||||||
|
|
||||||
|
(library ((name test)))
|
|
@ -0,0 +1 @@
|
||||||
|
let x = 1
|
|
@ -0,0 +1,3 @@
|
||||||
|
(jbuild_version 1)
|
||||||
|
|
||||||
|
(library ((name test)))
|
|
@ -0,0 +1 @@
|
||||||
|
let x = 2
|
|
@ -0,0 +1,5 @@
|
||||||
|
This test checks that there is no clash when two private libraries have the same name
|
||||||
|
|
||||||
|
$ $JBUILDER build -j1 --root . @doc
|
||||||
|
Multiple rules generated for _build/default/_doc/test/index.html
|
||||||
|
[1]
|
Loading…
Reference in New Issue