metaperl has asked for the wisdom of the Perl Monks concerning the following question:

I was testing a test before actually using the test, by giving it wrong data which should have had the function die.

But instead of die actually dieing, the test kept going and the actual error message said I simply generated different output.

Now, when I do make test the exception is actually throwing.

Replies are listed 'Best First'.
Re: prove $filename.t traps die() but make test does not
by chromatic (Archbishop) on Mar 17, 2009 at 02:18 UTC

    Do you have a question? If so, would you mind posting example code, the exact text of any output or error messages, and version numbers for the related Test::* modules, especially Test::Harness?