Add a test for dependency cycles (#475)
This commit is contained in:
parent
e61142e885
commit
f618096d6e
|
@ -277,3 +277,13 @@
|
|||
(progn
|
||||
(run ${exe:cram.exe} run.t)
|
||||
(diff? run.t run.t.corrected)))))))
|
||||
|
||||
(alias
|
||||
((name runtest)
|
||||
(deps ((files_recursively_in test-cases/loop)))
|
||||
(action
|
||||
(chdir test-cases/loop
|
||||
(setenv JBUILDER ${bin:jbuilder}
|
||||
(progn
|
||||
(run ${exe:cram.exe} run.t)
|
||||
(diff? run.t run.t.corrected)))))))
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
(jbuild_version 1)
|
||||
|
||||
(rule (copy ${read:x} a))
|
||||
(rule (copy ${read:y} b))
|
||||
|
||||
(rule (progn (run true) (with-stdout-to x (echo b))))
|
||||
(rule (progn (run true) (with-stdout-to y (echo a))))
|
|
@ -0,0 +1,5 @@
|
|||
$ $JBUILDER build --root . -j 1 a
|
||||
true x
|
||||
true y
|
||||
Error: wait: : No child processes
|
||||
[1]
|
Loading…
Reference in New Issue