in reply to Re: Installing Tests
in thread Installing Tests

I've discovered this problem in my attempt to test all of the CPAN. I wound up using $SIG{ALRM} and simply skip tests where I run into this issue. It's not perfect, but it's a workable hack for me. Is this portable?

Cheers,
Ovid

New address of my CGI Course.

Replies are listed 'Best First'.
Re^3: Installing Tests
by xdg (Monsignor) on Sep 11, 2006 at 14:42 UTC

    In Vanilla/Strawberry Perl builds, I found that setting $ENV{PERL_MM_USE_DEFAULT} and $ENV{AUTOMATED_TESTING} to true cuts out many of those annoying prompts for user input.

    -xdg

    Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

Re^3: Installing Tests
by tilly (Archbishop) on Sep 11, 2006 at 20:48 UTC
    I'd expect this to be portable, but I wouldn't be surprised if some tests still prompt for user input in a way that this doesn't catch.