Opened 6 years ago

Closed 6 years ago

#4049 closed defect (fixed)

Sometimes unit test for tree distance fail

Reported by: nicklas Owned by: nicklas
Priority: medium Milestone: PostGIS 2.5.0
Component: postgis Version: master
Keywords: Cc:

Description

On my computer I get this result from ./cu_tester measures:

    FAILED -   tests -  13 passed,   1 failed,  14 total.
           - asserts - 288 passed,   1 failed, 289 total.


  1. cu_measures.c:413  - CU_ASSERT_EQUAL(tree_inter( "POLYGON((0 0, 3 1, 0 2, 3 3, 0 4, 3 5, 0 6, 5 6, 5 0, 0 0))", "GEOMETRYCOLLECTION(MULTILINESTRING((6 3, 8 4)),POINT(1 3.5))"),LW_FALSE)

It seems to pass on the tests on Debbie and others but not on my computer.

Running Debian stretch. Postgresql 10.4, gcc 6.3.0 Postgis r16477

Change History (2)

comment:1 by nicklas, 6 years ago

The problem is that DISTPTS is not initialized in lwtree.c function rect_leaf_node_intersects with lw_dist2d_distpts_init

comment:2 by nicklas, 6 years ago

Resolution: fixed
Status: assignedclosed

In 16478:

fixes #4049

Note: See TracTickets for help on using tickets.