Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re^4: Unable to release modulino to CPAN - still struggling

by pryrt (Abbot)
on Oct 31, 2022 at 20:38 UTC ( #11147879=note: print w/replies, xml ) Need Help??

in reply to Re^3: Unable to release modulino to CPAN - still struggling
in thread Unable to release modulino to CPAN

The second [problem] is how to test any solution on my machine.
in the hope that I will be able to test on my machine

So the situation you need to try to replicate is having a different perl earlier in the path. So on your machine, have a fake directory with an executable file called "perl" that just dies with FAKE PERL or similar. Then put the path to that fake perl earlier in your path than your normal perl. Then run your /path/to/real/prove -l t/ with the full perl path, and when the test suite tries to run the fake perl instead of $^X , it should obviously fail.

edit: as hv pointed out here simultaneous to my post, that is exactly what this post was doing for you: it created a fake perl "executable" (bash script) in your t/ directory, then added that t/ directory to the start of your path; when you run your test suite in that condition, your test script (assuming it still runs perl BLAH rather than $^X BLAH ) would fail.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11147879]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2023-03-20 18:59 GMT
Find Nodes?
    Voting Booth?
    Which type of climate do you prefer to live in?

    Results (59 votes). Check out past polls.