• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mbland / go-script-bash / 782
95%
master: 95%

Build:
Build:
LAST BUILD BRANCH: multiple-script-dirs
DEFAULT BRANCH: master
Ran 05 Dec 2017 01:34PM UTC
Jobs 1
Files 138
Run time 6s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
782

push

travis-ci

mbland
bats/background-process: Close file descriptor 3

Closes #226. From the comment within `run_in_background`:

Bats duplicates standard output as file descriptor 3 so that output from
its framework functions isn't captured along with any output from the
code under test. If the code under test contains a `sleep` or other
blocking operation, this file descriptor will be held open until the
process becomes unblocked, preventing Bats from exiting. Hence, we
explicitly close file descriptor 3.

Any other code running under Bats that opens a background process should
close this file descriptor as well. See:
https://github.com/sstephenson/bats/issues/80

Much thanks to @marascio for discovering and researching the problem,
and proposing the actual fix.

1 of 1 new or added line in 1 file covered. (100.0%)

3282 of 4483 relevant lines covered (73.21%)

190.17 hits per line

Jobs
ID Job ID Ran Files Coverage
1 782.1 05 Dec 2017 01:34PM UTC 0
73.21
Travis Job 782.1
Source Files on build 782
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #782
  • 92531af9 on github
  • Next Build on close-bats-fd-3 (#822)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc