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

How are parallel programs generated? #2

Closed
Lysxia opened this issue Oct 6, 2017 · 3 comments
Closed

How are parallel programs generated? #2

Lysxia opened this issue Oct 6, 2017 · 3 comments

Comments

@Lysxia
Copy link

Lysxia commented Oct 6, 2017

I'm wondering how crud_eqc.erl generates parallel programs.

In particular, couldn't you generate one thread which updates a file, and another one which deletes it? Wouldn't an execution where the file is deleted before being updated cause a failure?

@Lysxia
Copy link
Author

Lysxia commented Oct 6, 2017

For context, I am trying to figure out how to achieve a similar thing in quickcheck-state-machine, in Haskell.

@hanssv
Copy link
Member

hanssv commented Oct 12, 2017

Without going into detail, parallel test cases are created from sequential test cases - this is done by splitting the single test case into several sequences to run in parallel. The splitting is done in "safe" way checking preconditions and interleavings, so we would not generate the case you mention.

@Lysxia
Copy link
Author

Lysxia commented Oct 12, 2017

Oh, that's interesting! Thank you!

@Lysxia Lysxia closed this as completed Oct 12, 2017
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

2 participants