Subject: | Test output checking is too strict. |
Test::More is hopefully going to switch to TAP v13 and it will output the TAP version at the start of the output which causes one of your tests to fail. Attached is a potential patch for that.
Subject: | patch.txt |
diff -Naur -x .git Test-Depends-0.06/t/02-test-budget-rentaharness.t Test-Depends-Fix/t/02-test-budget-rentaharness.t
--- Test-Depends-0.06/t/02-test-budget-rentaharness.t 2007-11-11 19:46:42.000000000 +0000
+++ Test-Depends-Fix/t/02-test-budget-rentaharness.t 2013-04-12 14:24:51.797638184 +0000
@@ -31,7 +31,7 @@
is($?, 0, "correct RC");
$output = `$^X t/someclass-import.pl somefunc 2>&1`;
-is($output, "1..1\nok 1 - somefunc sure is func-y\n",
+like($output, qr"(TAP version .*\n)?1..1\nok 1 - somefunc sure is func-y\n",
"include SomeClass qw(somefunc) succeeds");
is($?, 0, "correct RC");