close
Skip to content

lib/libc/tests/gen: add fts_open() error and edge case tests#2193

Closed
Jeetubhati wants to merge 1 commit into
freebsd:mainfrom
Jeetubhati:jbhati/fts-capsicum
Closed

lib/libc/tests/gen: add fts_open() error and edge case tests#2193
Jeetubhati wants to merge 1 commit into
freebsd:mainfrom
Jeetubhati:jbhati/fts-capsicum

Conversation

@Jeetubhati
Copy link
Copy Markdown

Add ATF test cases covering fts_open() error conditions and edge cases per the GSoC 2026 test plan:

  • invalid option bits (outside FTS_OPTIONMASK) yield EINVAL
  • empty argv yields EINVAL
  • empty path string yields FTS_NS with ENOENT
  • nonexistent path yields FTS_NS, not open failure
  • trailing slash does not crash (SVN r49851 regression)
  • unreadable directory yields FTS_D then FTS_DNR, never FTS_DP
  • multiple root paths are all visited left to right

Sponsored by: Google Summer of Code 2026

@github-actions
Copy link
Copy Markdown

Thank you for taking the time to contribute to FreeBSD!

There is an issue that needs to be resolved:

  • Missing Signed-off-by lines (8463454)

Note

Please review CONTRIBUTING.md, then update and push your branch again.

@Jeetubhati Jeetubhati closed this May 13, 2026
Add ATF test cases covering fts_open() error conditions and
edge cases per the GSoC 2026 test plan:

- invalid option bits (outside FTS_OPTIONMASK) yield EINVAL
- empty argv yields EINVAL
- empty path string yields FTS_NS with ENOENT
- nonexistent path yields FTS_NS, not open failure
- trailing slash does not crash (SVN r49851 regression)
- unreadable directory yields FTS_D then FTS_DNR, never FTS_DP
- multiple root paths are all visited left to right

Sponsored by: Google Summer of Code 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant