exit_test (version 2.0)

You can also look at:
Check a generic routine for errors.