[postgis-tickets] [PostGIS] #2396: liblwgeom CUnit tests fail on big-endian architectures.
PostGIS
trac at osgeo.org
Tue Aug 6 09:02:50 PDT 2013
#2396: liblwgeom CUnit tests fail on big-endian architectures.
---------------------+------------------------------------------------------
Reporter: mnencia | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.0.4
Component: postgis | Version: 2.0.x
Keywords: |
---------------------+------------------------------------------------------
Comment(by robe):
revised at r11738 for 2.1.
Okay in looking at this. I just noticed this particular test:
{{{
Test: test_lwgeom_force_clockwise ... FAILED
1. cu_libgeom.c:750 - CU_ASSERT_STRING_EQUAL(in_ewkt,out_ewkt)
}}}
uses compare of wkbs which could be endian specific instead of the ewkt
compare. I've run into situations like this and switched these tests to
do a same check (which is more or less equivalent to ST_OrderingEquals).
The output fprintf is something we generally only do when we are debugging
a test and not in the final iteration of a test. Though makes sense for us
to include as part of test as a cross-check. That is neither here nor
there. As a quick fix, I'm just getting rid of the fprintf and making it
a standard same ASSERT check.
Paul can change back if he feels the need to be more verbose.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2396#comment:16>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list