-
Notifications
You must be signed in to change notification settings - Fork 3k
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
kernel: Fix code:get_doc/1,2
when cover_compiled
#9433
base: master
Are you sure you want to change the base?
kernel: Fix code:get_doc/1,2
when cover_compiled
#9433
Conversation
CT Test Results 3 files 392 suites 1h 16m 2s ⏱️ For more details on these failures, see this check. Results for commit d51a975. ♻️ This comment has been updated with latest results. To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass. See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally. Artifacts// Erlang/OTP Github Action Bot |
I think this fix should be in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your pull request.
Please add a test case to beam_doc_SUITE
in the compiler
application.
As a side point, I wonder if rebar3 should switch how it uses cover, to just compiling the code in the first place with the appropriate flags, rather than dynamically recompiling it - it's much faster and avoids issues like this - it was one of the reasons to add the new coverage system - it doesn't require dynamic recompilation. |
e167d95
to
8d3113e
Compare
Done. |
8d3113e
to
b78520f
Compare
b78520f
to
d51a975
Compare
This PR fixes a bug getting docs when a module is compiled by the cover module. Also, the
cover_compiled
error was missing in the spec.To reproduce, first compile the module via
cover:compile
and runcode:get_doc
.Find this bug via the new
doctest
, for example:The expected result is to fail, but the test passed:
After this PR the error is raised:
cc @garazdawi