mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-24 17:12:35 +00:00
Make random brute force test a compile-time option.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4559 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
parent
95a9d05853
commit
a7561ec499
|
@ -12,6 +12,8 @@
|
|||
|
||||
#include "cu_geodetic.h"
|
||||
|
||||
#define RANDOM_TEST 0
|
||||
|
||||
/*
|
||||
** Called from test harness to register the tests in this file.
|
||||
*/
|
||||
|
@ -27,7 +29,9 @@ CU_pSuite register_geodetic_suite(void)
|
|||
|
||||
if (
|
||||
(NULL == CU_add_test(pSuite, "test_signum()", test_signum)) ||
|
||||
#if RANDOM_TEST
|
||||
(NULL == CU_add_test(pSuite, "test_gbox_from_spherical_coordinates()", test_gbox_from_spherical_coordinates)) ||
|
||||
#endif
|
||||
(NULL == CU_add_test(pSuite, "test_gserialized_get_gbox_geocentric()", test_gserialized_get_gbox_geocentric)) ||
|
||||
(NULL == CU_add_test(pSuite, "test_clairaut()", test_clairaut)) ||
|
||||
(NULL == CU_add_test(pSuite, "test_edge_intersection()", test_edge_intersection))
|
||||
|
@ -65,6 +69,8 @@ void test_signum(void)
|
|||
CU_ASSERT_EQUAL(signum(5.0),1);
|
||||
}
|
||||
|
||||
#if RANDOM_TEST
|
||||
|
||||
void test_gbox_from_spherical_coordinates(void)
|
||||
{
|
||||
const double gtolerance = 0.000001;
|
||||
|
@ -138,6 +144,8 @@ void test_gbox_from_spherical_coordinates(void)
|
|||
|
||||
}
|
||||
|
||||
#endif /* RANDOM_TEST */
|
||||
|
||||
void test_clairaut(void)
|
||||
{
|
||||
|
||||
|
|
Loading…
Reference in a new issue