Our test suite for locks and condition variables doesn look exactly like the sample output shown as part of the assignment. Is that okay?
Yes. You can decide what you want the result of an illegal operation should be (e.g., a process trying to release a lock that it doesn’t hold). If you decide that this should just be ignored, your output will probably look similar to the sample output in the assignment. If you decide that the errant process should be terminated, your output will look different. And, whatever you do, make sure to document how you decided to design your code and describe it in the writeup so that your grader will understand it. However, note that in no case should a process actually be allowed to release a lock that it isn’t holding! • Exactly what tests are required for the test suite? How many tests should we include? To start with, your test suite should include, but NOT be limited to, the test described in Part 2 of the assignment — i.e. making sure that processes can not release locks that they do not hold. But you’ll have to write other tests, too. Your solution to Part 2 should consist of a set o
Related Questions
- I created a test suite from a model using Reactis, but when I run the tests within Reactis, the output values are different than those stored in the tests. Why is this?
- Our test suite for locks and condition variables doesn look exactly like the sample output shown as part of the assignment. Is that okay?
- What is covered on the Praxis tests? Can I look at a sample test?