Project-OSRM / osrm-backend

Open Source Routing Machine - C++ backend
http://map.project-osrm.org
BSD 2-Clause "Simplified" License
6.31k stars 3.33k forks source link

Windows test failing on Debug #1283

Closed alex85k closed 9 years ago

alex85k commented 9 years ago

algorithm-tests.exe gives the following failure on Windows (Debug only, Release passes, latest develop branch):

Running 2 test cases...
unknown location(0): fatal error in "all_necessary_test": R6010
- abort() has been called
..\UnitTests\Algorithms\DouglasPeuckerTest.cpp(40): last checkpoint
Threshold: 512440
z: 0
...
Threshold: 4
z: 18

Do not know if it is important, placed it here to be sure.

DennisOSRM commented 9 years ago

cc: @TheMarex

DennisOSRM commented 9 years ago

Also fails on OS X in debug mode.

alex85k commented 9 years ago

The correct message is more detailed

Assertion failed: (zoom_level < 19)&&("unsupported zoom level"), file ..\Algorithms\douglas_peucker.cpp, line 103
Running 2 test cases...
unknown location(0): fatal error in "all_necessary_test": R6010

- abort() has been called

..\UnitTests\Algorithms\DouglasPeuckerTest.cpp(40): last checkpoint
Threshold: 512440
...

(copy-paste errors)

DennisOSRM commented 9 years ago

Thanks for the fix