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

« back to all changes in this revision

Viewing changes to init/tests/test_job.c

  • Committer: Scott James Remnant
  • Date: 2007-01-05 18:12:15 UTC
  • Revision ID: scott@netsplit.com-20070105181215-nsv3cz8524rbba0k
* init/tests/test_job.c (test_run_script): This test case relies
on there only being one file descriptor watch, which won't be true
if the control socket has been opened because there's a message to
go out.  Make sure it's closed first.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
 
44
44
#include "event.h"
45
45
#include "job.h"
 
46
#include "control.h"
46
47
 
47
48
 
48
49
void
889
890
 
890
891
        /* Loop until we've fed all of the data. */
891
892
        first = TRUE;
 
893
        control_close ();
892
894
        for (;;) {
893
895
                fd_set readfds, writefds, exceptfds;
894
896
                int    nfds;