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

Stop warnings from running the test case requiring .so twice #9246

Merged

Conversation

tagomoris
Copy link
Contributor

After the merge of #8991 (Feature 2005), it causes warnings about method re-definitions.

Without this patch, the extension defined methods before resolving symbols. But when resolving symbols causes LoadError, retries of require "resolve_symbol_resolver.so" will call rb_define_singleton_method again and it causes warnings.

This patch resolves this problem. The comment could be a valuable guide example for the future when extension developers use rb_ext_resolve_symbol in their extensions.

@mame mame enabled auto-merge (rebase) December 15, 2023 02:06
@mame mame merged commit b98bd10 into ruby:master Dec 15, 2023
96 of 98 checks passed
@tagomoris tagomoris deleted the ext-resolve-symbols-at-head-of-inits-for-tests branch December 15, 2023 02:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants