Skip to content

t/re/pat.t: Compilation error during make minitest due to @{^CAPTURE} #17293

Closed
@jkeenan

Description

@jkeenan

When running make minitest on blead (following up on a #p5p comment by @khwilliamson), t/re/pat.t fails to compile. A trimmed-down version of the error message:

t/re/pat ....................... Can't locate Tie/Hash/NamedCapture.pm in @INC 
(you may need to install the Tie::Hash::NamedCapture module) 
(@INC contains: ../lib . ../ext/re 
# ... long list of directories -- not including ext/Tie-Hash-NamedCapture ...
... 
/home/jkeenan/gitwork/perl/lib .. . .) at re/pat.t line 674.
BEGIN failed--compilation aborted at re/pat.t line 674.

In the core distribution, we have ext/Tie-Hash-NamedCapture/NamedCapture.pm. I tried various ways of dealing with this failure. I tried adding ../ext/Tie-Hash-NamedCapture to @INC. I tried adding a skip("message") if is_miniperl; statement (as in t/re/subst.t). None of these worked, i.e., none of them enabled the file to compile. Whenever I hit line 674 below, I got the fatal error.

 672         $_= "ace";
 673         /c(?=.$)/;
 674         is($#{^CAPTURE}, -1, $message);

Any ideas?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions