Skip to content

Conversation

leonerd
Copy link
Contributor

@leonerd leonerd commented Oct 8, 2025

I'm planning to add a bunch more croak tests as part of the signatures-named-params branch, and was somewhat surprised to find we don't already use a file like this for that purpose. So I moved all the manual eval and look at $@ tests out of signatures.t into this new file.

This allows a test file to begin with a common pragma line or other
setup code and avoid having to repeat that setup across every individual
test block in the file.
It's better to reuse the standard croak test infrastructure, than put
lots of ad-hoc uses of `eval` and assertions on the value of `$@`
afterwards in the regular signatures.t file.
@jkeenan
Copy link
Contributor

jkeenan commented Oct 8, 2025

LGTM

@leonerd leonerd merged commit ef56cbf into Perl:blead Oct 8, 2025
34 checks passed
@leonerd leonerd deleted the signatures-croak-tests branch October 8, 2025 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants