~vorlon/ubuntu/raring/upstart/lp.1199778

Viewing all changes in revision 981.

  • Committer: Scott James Remnant
  • Date: 2008-06-05 18:33:17 UTC
  • Revision ID: scott@netsplit.com-20080605183317-silgouccu8stzemh
* init/job.h (Job): Make blocking a statically defined list.
* init/job.c (job_new): Initialise rather than setting to NULL.
(job_unblock): Assume that blocking members are Blocked structures
and that the list itself is always iterable.
* init/tests/test_job.c (test_new): Check the list is empty, rather
than NULL.
(test_change_state, test_failed, test_unblock): Change tests cases
to expect blocking to always be present, and create members as Blocked
structures.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: