Skip to content

Fix wolfSSH_RealPath tests#935

Open
yosuke-wolfssl wants to merge 1 commit intowolfSSL:masterfrom
yosuke-wolfssl:f_3208
Open

Fix wolfSSH_RealPath tests#935
yosuke-wolfssl wants to merge 1 commit intowolfSSL:masterfrom
yosuke-wolfssl:f_3208

Conversation

@yosuke-wolfssl
Copy link
Copy Markdown
Contributor

This PR fixes wolfSSH_RealPath tests so that mismatches actually fail the test.
Also, this adds explicit cases that exercise the prev != out root-preservation branch.

@yosuke-wolfssl yosuke-wolfssl self-assigned this Apr 20, 2026
Copilot AI review requested due to automatic review settings April 20, 2026 01:31
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR tightens the wolfSSH_RealPath unit tests so they correctly fail on mismatches, and expands coverage with additional root-preservation edge cases to exercise the prev != out branch behavior described in the PR.

Changes:

  • Convert wolfSSH_RealPath “print-only” mismatch reporting into hard assertions so failures fail the test.
  • Add new RealPath test vectors for clamping .. segments at filesystem root (root-preservation behavior).
  • Add equivalent root-preservation cases for both default-path and NULL-default-path modes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tests/api.c Outdated
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.

3 participants