Add a test for dependency cycles (#475)

This commit is contained in:
Jérémie Dimino 2018-02-01 13:05:32 +00:00 committed by GitHub
parent e61142e885
commit f618096d6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 0 deletions

View File

@ -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)))))))

View File

@ -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))))

View File

@ -0,0 +1,5 @@
$ $JBUILDER build --root . -j 1 a
true x
true y
Error: wait: : No child processes
[1]