Failing test for shadowing bindings

Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
This commit is contained in:
Rudi Grinberg 2018-07-09 22:36:21 +07:00
parent 65e1aa0043
commit 205d12755e
5 changed files with 20 additions and 0 deletions

View File

@ -611,6 +611,14 @@
test-cases/select
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
(alias
(name shadow-bindings)
(deps (package dune) (source_tree test-cases/shadow-bindings))
(action
(chdir
test-cases/shadow-bindings
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
(alias
(name subst)
(deps (package dune) (source_tree test-cases/subst))
@ -749,6 +757,7 @@
(alias scope-bug)
(alias scope-ppx-bug)
(alias select)
(alias shadow-bindings)
(alias subst)
(alias syntax-versioning)
(alias tests-stanza)
@ -824,6 +833,7 @@
(alias scope-bug)
(alias scope-ppx-bug)
(alias select)
(alias shadow-bindings)
(alias subst)
(alias syntax-versioning)
(alias tests-stanza)

View File

@ -0,0 +1,5 @@
(alias
(name runtest)
(deps (:root foo))
(action (echo %{root})))

View File

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

View File

@ -0,0 +1,4 @@
Bindings introduced by user dependencies should shadow existing bindings
$ dune runtest
.