in reply to prompt and timeout in tests

This is a bad idea; it makes non-interactive test runs impossible.

If you really need to prompt, do it during the configuration process with either ExtUtils::MakeMaker's prompt() function or Module::Build's prompt() or y_n() methods. They both work across platforms and don't require you to figure out all of that magic.

Replies are listed 'Best First'.
Re^2: prompt and timeout in tests
by leocharre (Priest) on Jan 15, 2008 at 23:10 UTC

    You mean the testing for terminal invocation?
    Aww.. I was thinking it worked.. I tried it out with perl Makefile.PL then make test, and it knnNNoooOOwws that I'm not 'there'.
    Then I run the tests straight via perl t/$x.t and hello world!

    I'm going to take a harder look at ExtUtils::MakeMaker like you said!