# New Ticket Created by James Keenan
# Please include the string: [perl #48965]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=48965 >
Running 'make test' tonight on Linux (configuration run by Perl
5.10), I got the following previously unobserved (by me, at any rate)
test failure:
t/compilers/json/to_parrot...................
# Failed test (t/compilers/json/to_parrot.t at line 688)
# Exited with error code: [SIGNAL 11]
# Received:
#
# Expected:
# "JSON" => ResizablePMCArray (size:3) [
# Hash {
# },
# Hash {
# },
# Hash {
# }
# ]
#
# Looks like you failed 1 test of 60.
dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 33
Failed 1/60 tests, 98.33% okay
Here is the relevant part of the output of prove -v on that test:
ok 57 - object with boolean values
ok 58 - example taken from the RFC
not ok 59 - another example taken from the RFC # TODO check number
precision
# Failed (TODO) test (t/compilers/json/to_parrot.t at line 688)
# got: '"JSON" => ResizablePMCArray (size:2) [
# Hash {
# "Address" => "",
# "City" => "SAN FRANCISCO",
# "Country" => "US",
# "Latitude" => 37.7668,
# "Longitude" => -122.396,
# "State" => "CA",
# "Zip" => "94107",
# "precision" => "zip"
# },
# Hash {
# "Address" => "",
# "City" => "SUNNYVALE",
# "Country" => "US",
# "Latitude" => 37.372,
# "Longitude" => -122.026,
# "State" => "CA",
# "Zip" => "94085",
# "precision" => "zip"
# }
# ]
# '
# expected: '"JSON" => ResizablePMCArray (size:2) [
# Hash {
# "Address" => "",
# "City" => "SAN FRANCISCO",
# "Country" => "US",
# "Latitude" => 37.7668,
# "Longitude" => -122.3959,
# "State" => "CA",
# "Zip" => "94107",
# "precision" => "zip"
# },
# Hash {
# "Address" => "",
# "City" => "SUNNYVALE",
# "Country" => "US",
# "Latitude" => 37.371991,
# "Longitude" => -122.026020,
# "State" => "CA",
# "Zip" => "94085",
# "precision" => "zip"
# }
# ]
# '
ok 60 - random object/array example
ok
All tests successful.
Files=1, Tests=60, 8 wallclock secs ( 2.46 cusr + 0.39 csys = 2.85
CPU)
The last change to this file was two months ago ... so it's not a
recent change to the test itself that is causing the problem:
------------------------------------------------------------------------
r22306 | bernhard | 2007-10-20 10:33:17 -0400 (Sat, 20 Oct 2007) | 3
lines
Untodo test that is probably succeeding because
ResizablePMCArray now returns PMCNULL for nonexisting keys.
This test was passing 24 hours earlier, so I suspect some change
since r24106.
kid51