xen-org/xen-api — pull request #774 by djs55 (2012-07-17 20:10:32+00:00)
Title: CA-85940: bugs in cancellation are hereby cancelled

Add a "cancel_test" which first measures the number of "cancel points" (ie code points where it is possible to cancellation an operation) for each lifecycle operation and then verifies that a cancel triggered at that point leaves the system in a valid state.

Note that migrate is not currently testable using this framework -- hopefully this can be addressed in future.

The rest of the commits are necessary to make the tests pass.