Helpers for asserting certain things for programs, using HUnit.
All of the assertions in this module throw HUnit exceptions on failure
Runs the given program with
run and asserts that it is still running
after the given timeout.
Don't choose the timeout too high as this function will block for it.
If the timeout is exceeded, a HUnit
assertFailure exception is thrown,
showing the command line to be invoked, the exit code, and the standard
error output of the program.
Asserts that the given process has shut down in *at most* the given timeout.
Periodically polling with
returns as soon as the application has terminated or the timeout is exceeded.
Use this to write faster tests than with manual
For most tests, the application will actually finish way before the timeout.
If the process is still running, a HUnit
assertFailure exception is thrown.