[Bug 926473] [NEW] upstart test suite assumes no inherited fds

Steve Langasek steve.langasek at canonical.com
Sat Feb 4 02:03:28 UTC 2012


Public bug reported:

When building under bzr-builddeb, upstart's test suite fails
consistently:

...ensure sane fds with no console, no script
BAD: fd 3 is unexpected valid
        at tests/test_job_process.c:1164 (test_run).
/bin/bash: line 5: 19389 Aborted                 (core dumped) ${dir}$tst
FAIL: test_job_process

The test suite seems to assume no file descriptors are open when the
test starts, but that seems to not be the case here.

The test passes consistently when not running under bzr bd.

The test suite should close its file descriptors before running the
test, to ensure a clean environment.

** Affects: upstart (Ubuntu)
     Importance: Medium
     Assignee: James Hunt (jamesodhunt)
         Status: Triaged

** Changed in: upstart (Ubuntu)
   Importance: Undecided => Medium

** Changed in: upstart (Ubuntu)
       Status: New => Triaged

** Changed in: upstart (Ubuntu)
     Assignee: (unassigned) => James Hunt (jamesodhunt)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to upstart in Ubuntu.
https://bugs.launchpad.net/bugs/926473

Title:
  upstart test suite assumes no inherited fds

Status in “upstart” package in Ubuntu:
  Triaged

Bug description:
  When building under bzr-builddeb, upstart's test suite fails
  consistently:

  ...ensure sane fds with no console, no script
  BAD: fd 3 is unexpected valid
          at tests/test_job_process.c:1164 (test_run).
  /bin/bash: line 5: 19389 Aborted                 (core dumped) ${dir}$tst
  FAIL: test_job_process

  The test suite seems to assume no file descriptors are open when the
  test starts, but that seems to not be the case here.

  The test passes consistently when not running under bzr bd.

  The test suite should close its file descriptors before running the
  test, to ensure a clean environment.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/926473/+subscriptions




More information about the foundations-bugs mailing list