Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prove -l -j2 creates race condition #35

Open
mohawk2 opened this issue Apr 22, 2019 · 0 comments
Open

prove -l -j2 creates race condition #35

mohawk2 opened this issue Apr 22, 2019 · 0 comments

Comments

@mohawk2
Copy link
Contributor

mohawk2 commented Apr 22, 2019

The Tutorial says you can be "relaxed" and use prove -l.

However, if your module has two tests, prove -l -j2 t/t1.t t2.t will create a race condition as two processes will race to build the module, and sadness will ensue. make will not (as far as I can tell) cause this problem, so I think this should be documented as the way forward: make test TEST_FILES="t/t1.t t/t2.t". Or, some per-module locking that still allows concurrent building of several modules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant