Subject: | subtest names incorrect |
When running subtest_with in a loop the subtest name is kept from the first iteration for the second one and then shifted by one on the other iterations, for example:
[ahartmai@ahartmai-nb:~/perl5/git/NAC-Logging$ (master)]$ prove -vl t/02_filter_addmetadata.t
t/02_filter_addmetadata.t ..
# With stats: Simple empty hash
ok 1 - parsing
ok 2 - no more database queries on subsequent messages
1..2
ok 1 - With stats: Simple empty hash
# With stats: Cisco ASA & context
ok 1 - parsing
ok 2 - no more database queries on subsequent messages
1..2
ok 2 - With stats: Cisco ASA & context
# With stats: Cisco Router
ok 1 - parsing
ok 2 - no more database queries on subsequent messages
1..2
ok 3 - With stats: Cisco Router
# With stats: Cisco IOS Switch
ok 1 - parsing
ok 2 - no more database queries on subsequent messages
1..2
This can be seen when running under prove -vl.
And by the way, Test::Builder 1.001003 has already been released which means you can remove your workaround from subtest_with.