[postgis-tickets] r16378 - check_gdal: Don't assume failure when the datapath is invalid

Darafei komzpa at gmail.com
Tue Feb 13 05:30:34 PST 2018


Author: komzpa
Date: 2018-02-13 05:30:33 -0800 (Tue, 13 Feb 2018)
New Revision: 16378

Modified:
   trunk/raster/test/regress/check_gdal.sql
   trunk/raster/test/regress/check_gdal_expected
Log:
check_gdal: Don't assume failure when the datapath is invalid

Patch by Raúl Marín Rodríguez

Closes https://github.com/postgis/postgis/pull/206
Closes #4013


Modified: trunk/raster/test/regress/check_gdal.sql
===================================================================
--- trunk/raster/test/regress/check_gdal.sql	2018-02-13 13:08:25 UTC (rev 16377)
+++ trunk/raster/test/regress/check_gdal.sql	2018-02-13 13:30:33 UTC (rev 16378)
@@ -5,13 +5,8 @@
 			THEN false
 		ELSE NULL
 	END;
-SET postgis.gdal_datapath = '';
-SELECT
-	CASE
-		WHEN strpos(postgis_gdal_version(), 'GDAL_DATA') <> 0
-			THEN NULL
-		ELSE TRUE
-	END;
+SET postgis.gdal_datapath = 'invalid_path';
+SHOW postgis.gdal_datapath;
 SET postgis.gdal_datapath = default;
 SELECT
 	CASE

Modified: trunk/raster/test/regress/check_gdal_expected
===================================================================
--- trunk/raster/test/regress/check_gdal_expected	2018-02-13 13:08:25 UTC (rev 16377)
+++ trunk/raster/test/regress/check_gdal_expected	2018-02-13 13:30:33 UTC (rev 16378)
@@ -1,3 +1,4 @@
+invalid_path
 t
 DISABLE_ALL
 ENABLE_ALL



More information about the postgis-tickets mailing list