Test case for excluding missing module
Setting the field modules as follows (modules (:standard \ foo)) where foo doesn't exist is an error.
This commit is contained in:
parent
9e4cc84370
commit
7977b8371a
|
@ -358,3 +358,13 @@
|
|||
(progn
|
||||
(run ${exe:cram.exe} run.t)
|
||||
(diff? run.t run.t.corrected)))))))
|
||||
|
||||
(alias
|
||||
((name runtest)
|
||||
(deps ((files_recursively_in test-cases/exclude-missing-module)))
|
||||
(action
|
||||
(chdir test-cases/exclude-missing-module
|
||||
(setenv JBUILDER ${bin:jbuilder}
|
||||
(progn
|
||||
(run ${exe:cram.exe} run.t)
|
||||
(diff? run.t run.t.corrected)))))))
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
(library
|
||||
((name foo)
|
||||
(modules (:standard \ fake))))
|
|
@ -0,0 +1,4 @@
|
|||
$ $JBUILDER build --display short --root . -j 1
|
||||
File "jbuild", line 1, characters 0-50:
|
||||
Error: Module Fake doesn't exist.
|
||||
[1]
|
Loading…
Reference in New Issue