Skip to content

Conversation

jkeenan
Copy link
Contributor

@jkeenan jkeenan commented Sep 1, 2025

Partial fix for GH #23663. This eliminates the warning reported in that ticket when you use 'X' in the Perl debugger.

However, I don't know how to write regression tests for the debugger. We would benefit from a test that demonstrates that 'X' runs without emitting warnings.


  • This set of changes may require a perldelta entry.

@tonycoz
Copy link
Contributor

tonycoz commented Sep 2, 2025

The #17660 test in lib/perl5db.t seems like a good template for testing this.

@jkeenan jkeenan force-pushed the gh-23663-debugger-warning-20250901 branch from 6a12360 to 7710deb Compare September 2, 2025 19:29
This eliminates the warning reported in GH Perl#23663 when you use 'X' or 'V
main' in the Perl debugger.

Add tests for 'X' and 'V main' to demonstrate that when loading they no
longer warn about undefined behavior.  Update MANIFEST.

Fixes: GH Perl#23663.
@jkeenan jkeenan force-pushed the gh-23663-debugger-warning-20250901 branch from 7710deb to 607ded7 Compare September 2, 2025 19:45
@jkeenan
Copy link
Contributor Author

jkeenan commented Sep 2, 2025

The #17660 test in lib/perl5db.t seems like a good template for testing this.

Thanks for that suggestion, though from reading the documentation, it appeared to me that contents_unlike would be a better testing function than output_unlike. Please review.

@jkeenan jkeenan self-assigned this Sep 3, 2025
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.

2 participants