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

Replace specific constant tests with just type checks #1190

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

matoro
Copy link
Contributor

@matoro matoro commented Aug 7, 2024

As detailed in the attached issue, these constants can and do vary e.g. between architectures on Linux. Hardcoding and asserting that they are equal to specific values pretty much defeats the purpose of building these in at compile time. Instead, simply assert that they exist and are integers.

Fixes: #1150

As detailed in the attached issue, these constants can and do vary e.g.
between architectures on Linux.  Hardcoding and asserting that they are
equal to specific values pretty much defeats the purpose of building
these in at compile time.  Instead, simply assert that they exist and
are integers.

Fixes: ruby#1150
@eregon eregon merged commit fcc0e7e into ruby:master Aug 8, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Process constant values are platform-dependent on Linux
2 participants