Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (2)
Add upstream patch to fix virtualknn test hang. (closes: #920995)
· 129319a1
Bas Couwenberg
authored
Feb 15, 2019
129319a1
Set distribution to experimental.
· 7c342cf9
Bas Couwenberg
authored
Feb 15, 2019
7c342cf9
Show whitespace changes
Inline
Side-by-side
debian/changelog
View file @
7c342cf9
spatialite (5.0.0~beta0-1~exp2)
UNRELEASED
; urgency=medium
spatialite (5.0.0~beta0-1~exp2)
experimental
; urgency=medium
* Bump Standards-Version to 4.3.0, no changes.
* Add Build-Depends-Package field to symbols file.
* Add upstream patch to fix virtualknn test hang.
(closes: #920995)
-- Bas Couwenberg <sebastic@debian.org>
Sun
,
0
5
Aug
201
8 21:00
:3
1
+0
2
00
-- Bas Couwenberg <sebastic@debian.org>
Fri
,
1
5
Feb
201
9 18:18
:3
4
+0
1
00
spatialite (5.0.0~beta0-1~exp1) experimental; urgency=medium
...
...
debian/patches/series
View file @
7c342cf9
spelling-errors.patch
virtualknn.patch
debian/patches/virtualknn.patch
0 → 100644
View file @
7c342cf9
Description: fixing a bug hanging VirtualKNN tests
Author: sandro
Origin: https://www.gaia-gis.it/fossil/libspatialite/info/90180e065dfdd8fa
Bug: https://www.gaia-gis.it/fossil/libspatialite/info/2cad2f4b9df468fa
Bug-Debian: https://bugs.debian.org/920995
--- a/src/spatialite/virtualknn.c
+++ b/src/spatialite/virtualknn.c
@@ -240,6 +240,7 @@
vknn_empty_context (VKnnContextPtr ctx)
ctx->rtree_miny = -DBL_MAX;
ctx->rtree_maxx = DBL_MAX;
ctx->rtree_maxy = DBL_MAX;
+ ctx->level = 0;
ctx->current_level = 0;
ctx->max_items = 0;
ctx->knn_array = NULL;
--- a/test/check_virtualknn.c
+++ b/test/check_virtualknn.c
@@ -484,6 +484,14 @@
main (int argc, char *argv[])
sqlite3_close (db_handle);
return -4;
}
+/* adding a second geometry column */
+ ret = add_second_geom (db_handle);
+ if (!ret)
+ {
+ fprintf (stderr, "Add Second Geometry: unexpected failure !!!\n");
+ sqlite3_close (db_handle);
+ return -5;
+ }
/* Creating the VirtualKNN table */
ret = create_knn (db_handle);
@@ -491,7 +499,7 @@
main (int argc, char *argv[])
{
fprintf (stderr, "CREATE VIRTUAL TABLE knn: expected failure !!!\n");
sqlite3_close (db_handle);
- return -5;
+ return -6;
}
/* Testing KNN - #1 */
@@ -500,7 +508,7 @@
main (int argc, char *argv[])
{
fprintf (stderr, "Check KNN #1: unexpected failure\n");
sqlite3_close (db_handle);
- return -6;
+ return -7;
}
/* Testing KNN - #2 */
@@ -509,7 +517,7 @@
main (int argc, char *argv[])
{
fprintf (stderr, "Check KNN #2: unexpected failure\n");
sqlite3_close (db_handle);
- return -7;
+ return -8;
}
/* Testing KNN - #3 */
@@ -518,7 +526,7 @@
main (int argc, char *argv[])
{
fprintf (stderr, "Check KNN #3: unexpected success\n");
sqlite3_close (db_handle);
- return -8;
+ return -9;
}
/* creating a first SpatialView */
@@ -527,7 +535,7 @@
main (int argc, char *argv[])
{
fprintf (stderr, "Create Spatial View #1: unexpected failure !!!\n");
sqlite3_close (db_handle);
- return -9;
+ return -10;
}
/* Testing KNN - #4 */
@@ -536,7 +544,7 @@
main (int argc, char *argv[])
{
fprintf (stderr, "Check KNN #4: unexpected failure\n");
sqlite3_close (db_handle);
- return -10;
+ return -11;
}
/* Testing KNN - #5 */
@@ -545,15 +553,6 @@
main (int argc, char *argv[])
{
fprintf (stderr, "Check KNN #5: unexpected failure\n");
sqlite3_close (db_handle);
- return -11;
- }
-
-/* adding a second geometry column */
- ret = add_second_geom (db_handle);
- if (!ret)
- {
- fprintf (stderr, "Add Second Geometry: unexpected failure !!!\n");
- sqlite3_close (db_handle);
return -12;
}