~jamesodhunt/ubuntu/raring/upstart/1.6

« back to all changes in this revision

Viewing changes to init/tests/test_job.c

  • Committer: James Hunt
  • Date: 2011-12-14 14:09:46 UTC
  • mfrom: (1185.1.14 upstream)
  • Revision ID: james.hunt@ubuntu.com-20111214140946-omh0ikuf6utjdm1o
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
147
147
                TEST_EQ (job->trace_forks, 0);
148
148
                TEST_EQ (job->trace_state, TRACE_NONE);
149
149
 
 
150
                TEST_EQ_P (job->log, NULL);
 
151
 
150
152
                event_operator_reset (job->stop_on);
151
153
 
152
154
                nih_free (job);
691
693
        mkdir (dirname, 0700);
692
694
 
693
695
        class = job_class_new (NULL, "test", NULL);
 
696
        class->console = CONSOLE_NONE;
694
697
        class->process[PROCESS_MAIN] = process_new (class);
695
698
        class->process[PROCESS_MAIN]->command = nih_sprintf (
696
699
                class->process[PROCESS_MAIN], "touch %s/run", dirname);