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

briandfoy / PerlPowerTools / 10982053867
63%

Build:
DEFAULT BRANCH: master
Ran 22 Sep 2024 02:48PM UTC
Jobs 1
Files 3
Run time 1min
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

22 Sep 2024 02:44PM UTC coverage: 73.069% (-0.7%) from 73.805%
10982053867

push

github

web-flow
grep: wrong exit code for grep -s (#741)

* If file argument exists but cannot be opened, grep was skipping the file with a strange "binary file" message
* I found this when testing "grep -s", which is expected to exit with 2 if a file couldn't be opened
* I triggered open() error by removing file permissions on my Linux system
%chmod 0 a.c
%perl grep -T include a.c 
grep: skipping binary file "a.c"

* Correct the binary file condition; skip the file argument if file is binary (filetest -B) and we're not running grep -a
* Correct the logic for exit code; $Errors should increment regardless of -s because exit code is determined from it
* Bump version
* Regression test: "perl grep -s pat1 bad.file.name" --> exit 2, silent

350 of 479 relevant lines covered (73.07%)

4736.89 hits per line

Jobs
ID Job ID Ran Files Coverage
1 10982053867.1 22 Sep 2024 02:48PM UTC 0
73.07
GitHub Action Run
Source Files on build 10982053867
Detailed source file information is not available for this build.
  • Back to Repo
  • b6a4dcff on github
  • Prev Build on master (#10973938881)
  • Next Build on master (#11000344722)
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