On Fri, Jun 03, 2005 at 03:22:46PM +0100, Clayton, Nik wrote: > I get this output: > > 1..2 > ok 1 - test 1 > not ok 2 - test 2 > > # Failed test (test.pl at line 9) > # Looks like you failed 1 test of 2. > > Notice the blank line between the "not ok 2" line and the first line of > diagnostic output. That seems new. > > Is this a deliberate change?
Yes, it is a deliberate change in Test::More which exposed a minor bug in Test::Harness. There is a patch for the bug but it has not yet been applied. http://rt.cpan.org/NoAuth/Bug.html?id=12457 Test::More now adds a newline before printing out its failure diagnostic when running under Test::Harness to produce neater output. So instead of this: foo....NOK 1# Failed test (foo.t at line 7) # got: '23' # expected: '42' foo....NOK 2# Failed test (foo.t at line 8) # got: '3.14' # expected: '3' # Looks like you failed 2 tests of 2. You get this. foo....NOK 1 # Failed test (foo.t at line 5) # got: '23' # expected: '42' foo....NOK 2 # Failed test (foo.t at line 6) # got: '3.14' # expected: '3' # Looks like you failed 2 tests of 2. It determines its running under Test::Harness by looking at the HARNESS_ACTIVE environment variable. Unfortunately Test::Harness sets this variable at load time rather than only when running tests which is why you get the newline even if Test::Harness is merely loaded. -- Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern Don't try the paranormal until you know what's normal. -- "Lords and Ladies" by Terry Prachett