~jamesodhunt/upstart/async-fix-job-new-destructor

« back to all changes in this revision

Viewing changes to init/tests/test_job.c

  • Committer: James Hunt
  • Date: 2014-05-22 08:36:50 UTC
  • mfrom: (1650.1.1 trunk)
  • Revision ID: james.hunt@ubuntu.com-20140522083650-3axlnzgnmxq492jb
* Merge of lp:~xnox/upstart/async-failed-pid-to-zero.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1234
1234
                TEST_EQ (job->goal, JOB_STOP);
1235
1235
                TEST_EQ (job->state, JOB_STOPPING);
1236
1236
                TEST_FALSE (job->process_data[PROCESS_PRE_START]->valid);
1237
 
                // FIXME shouldn't it be zero at this point?
1238
 
                TEST_NE (job->pid[PROCESS_PRE_START], 0);
 
1237
                TEST_EQ (job->pid[PROCESS_PRE_START], 0);
1239
1238
 
1240
1239
                TEST_EQ (cause->blockers, 0);
1241
1240
                TEST_EQ (cause->failed, TRUE);
1616
1615
                TEST_EQ (job->goal, JOB_STOP);
1617
1616
                TEST_EQ (job->state, JOB_STOPPING);
1618
1617
                TEST_FALSE (job->process_data[PROCESS_MAIN]->valid);
1619
 
                // FIXME shouldn't it be zero at this point?
1620
 
                TEST_NE (job->pid[PROCESS_MAIN], 0);
 
1618
                TEST_EQ (job->pid[PROCESS_MAIN], 0);
1621
1619
 
1622
1620
                TEST_EQ (cause->blockers, 0);
1623
1621
                TEST_EQ (cause->failed, TRUE);