id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	lang	patch	platform
2088	strange error in t/examples/pod.t	mikehh		"t/examples/pod.t is failing with a weird error:

as of RELEASE_3_2_0-330-gae4f8e1 (after Merge branch 'whiteknight/imcc_compreg_pmc') 

 
{{{
mhw@mhw-Desktop:~/parrot$ date
Fri Apr  8 18:26:45 BST 2011
mhw@mhw-Desktop:~/parrot$ prove t/examples/pod.t
t/examples/pod.t .. Failed 1/613 subtests

Test Summary Report
-------------------
t/examples/pod.t (Wstat: 0 Tests: 612 Failed: 0)
  Parse errors: Tests out of sequence.  Found (336) but expected (335)
                Tests out of sequence.  Found (337) but expected (336)
                Tests out of sequence.  Found (338) but expected (337)
                Tests out of sequence.  Found (339) but expected (338)
                Tests out of sequence.  Found (340) but expected (339)
Displayed the first 5 of 279 TAP syntax errors.
Re-run prove with the -p option to see them all.
Files=1, Tests=612, 42 wallclock secs ( 0.48 usr  0.02 sys +  9.28 cusr  5.77 csys = 15.55 CPU)
Result: FAIL

}}}

running prove -p t/examples/pod.t ->

{{{
mhw@mhw-Desktop:~/parrot$ prove -p t/examples/pod.t
t/examples/pod.t .. Failed 1/613 subtests

Test Summary Report
-------------------
t/examples/pod.t (Wstat: 0 Tests: 612 Failed: 0)
  Parse errors: Tests out of sequence.  Found (336) but expected (335)
                Tests out of sequence.  Found (337) but expected (336)
                Tests out of sequence.  Found (338) but expected (337)
...
...
                Tests out of sequence.  Found (612) but expected (611)
                Tests out of sequence.  Found (613) but expected (612)
                Bad plan.  You planned 613 tests but ran 612.
Files=1, Tests=612, 39 wallclock secs ( 0.49 usr  0.02 sys +  7.53 cusr  5.32 csys = 13.36 CPU)
Result: FAIL

}}}

extract from prove -v t/examples/pod.t ->

{{{
mhw@mhw-Desktop:~/parrot$ prove -v t/examples/pod.t
t/examples/pod.t ..
ok 1 - docs/dev/byteorder.pod:15:PIR:FRAGMENT
not ok 2 - docs/pdds/pdd23_exceptions.pod:372:PIR:FRAGMENT_TODO # TODO invalid code
#   Failed (TODO) test 'docs/pdds/pdd23_exceptions.pod:372:PIR:FRAGMENT_TODO'
#   at t/examples/pod.t line 79.
#          got: 'error:imcc:syntax error, unexpected DOT ('.')
#       in file '/tmp/82LPPD9Iwc.pir' line 4
# error:imcc:syntax error, unexpected DOT ('.')
#       in file '/tmp/82LPPD9Iwc.pir' line 6
# error:imcc:syntax error ... somewhere
#       in file '/tmp/82LPPD9Iwc.pir' line 8
# syntax error ... somewhere
# '
#     expected: ''
ok 3 - docs/pdds/pdd23_exceptions.pod:395:PIR:FRAGMENT
...
...
ok 333 - docs/pdds/pdd19_pir.pod:456:PIR:
ok 334 - docs/pdds/pdd19_pir.pod:481:PIR:
4243ok 335 - docs/pdds/pdd19_pir.pod:491:PIR:
ok 336 - docs/pdds/pdd19_pir.pod:510:PIR:
not ok 337 - docs/pdds/pdd19_pir.pod:531:PIR:INVALID # TODO invalid code
#   Failed (TODO) test 'docs/pdds/pdd19_pir.pod:531:PIR:INVALID'
#   at t/examples/pod.t line 79.
#          got: 'error:imcc:'bar' is not a vtable, but was used with :vtable.
#
#       in file '/tmp/VwQGZ9XhqZ.pir' line 4
# '
#     expected: ''
ok 338 - docs/pdds/pdd19_pir.pod:662:PIR:FRAGMENT
ok 339 - docs/pdds/pdd19_pir.pod:682:PIR:FRAGMENT
...
...
ok 612 - docs/user/pir/exceptions.pod:67:PIR:FRAGMENT
ok 613 - docs/user/pir/exceptions.pod:92:PIR:
1..613
Failed 1/613 subtests

Test Summary Report
-------------------
t/examples/pod.t (Wstat: 0 Tests: 612 Failed: 0)
  Parse errors: Tests out of sequence.  Found (336) but expected (335)
                Tests out of sequence.  Found (337) but expected (336)
                Tests out of sequence.  Found (338) but expected (337)
                Tests out of sequence.  Found (339) but expected (338)
                Tests out of sequence.  Found (340) but expected (339)
Displayed the first 5 of 279 TAP syntax errors.
Re-run prove with the -p option to see them all.
Files=1, Tests=612, 43 wallclock secs ( 0.67 usr  0.03 sys +  9.29 cusr  5.77 csys = 15.76 CPU)
Result: FAIL

}}}

notice the 4243ok 335.. this seems to me where things go wrong

{{{
mhw@mhw-Desktop:~/parrot$ ack 'Tests out of sequence.'
runtime/parrot/library/TAP/Parser.pir
1254:    self.'_add_error'(""Tests out of sequence.  Found ("", $S1, "") but expected ("", $S2, "")"")

}}}

looks like it fails somewhere in docs/pdds/pdd19_pir.pod

"	bug	closed	normal		testing	3.2.0	medium	fixed		whiteknight			
