Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ext/session/tests: more lenient expected output checks #11631

Merged
merged 1 commit into from
Jul 10, 2023

Conversation

orlitzky
Copy link
Contributor

@orlitzky orlitzky commented Jul 8, 2023

Several session tests incidentally check the values of INI variables like session.name and session.save_path. This isn't the point of the tests, and it can cause spurious failures if (for example) you want to override your temporary directory while testing. So here, we make the expected output patterns more lenient.

Several session tests incidentally check the values of INI variables
like session.name and session.save_path. This isn't the point of the
tests, and it can cause spurious failures if (for example) you want to
override your temporary directory while testing. So here, we make the
expected output patterns more lenient.
@orlitzky
Copy link
Contributor Author

orlitzky commented Jul 8, 2023

If anyone is wondering, we've had these disabled on Gentoo for a while because they fail with our non-empty session.save_path used at build time. Disabling them was a lazy solution though and I'm now finally getting around to a proper fix.

Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

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

LGTM

@Girgias Girgias merged commit 092e090 into php:master Jul 10, 2023
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants