[Koha-bugs] [Bug 11480] New: Tests in Output_JSON.t make invalid assumptions

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jan 6 17:51:44 CET 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11480

            Bug ID: 11480
           Summary: Tests in Output_JSON.t make invalid assumptions
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Test Suite
          Assignee: chris at bigballofwax.co.nz
          Reporter: colin.campbell at ptfs-europe.com
        QA Contact: gmcharlt at gmail.com

Output_JSON.t fails on current perl release.
Tests in Output_JSON.t assume that items in the generated json string will be
in a consistent order. Internally, though, they are held in a hash, an
unordered container. In perl versions 5.18 and greater the overhaul of of
hashing ensures that hash elements are returned in an unpredictable sequence,
(which was previously the theory). As a result the tests checking the output
should be rewitten not to make assumptions about the order of elements.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list