[GRASS-SVN] r63954 - in grass/trunk/lib/gis: . testsuite
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jan 5 07:45:39 PST 2015
Author: neteler
Date: 2015-01-05 07:45:39 -0800 (Mon, 05 Jan 2015)
New Revision: 63954
Modified:
grass/trunk/lib/gis/gislib.dox
grass/trunk/lib/gis/testsuite/gis_lib_env_test.py
Log:
testsuite + doxygen: update for r63830
Modified: grass/trunk/lib/gis/gislib.dox
===================================================================
--- grass/trunk/lib/gis/gislib.dox 2015-01-04 22:02:37 UTC (rev 63953)
+++ grass/trunk/lib/gis/gislib.dox 2015-01-05 15:45:39 UTC (rev 63954)
@@ -269,11 +269,11 @@
These routines look up the variable <em>name</em> in the GRASS
environment and return its value (which is a character string). If
<em>name</em> is not set, G_getenv() issues an error message and calls
-exit(). G__setenv() just returns the NULL pointer.
+exit(). G_setenv_nogisrc() just returns the NULL pointer.
- G_setenv()
- - G__setenv()
+ - G_setenv_nogisrc()
These routines set the the GRASS environment variable <em>name</em> to
<em>value</em>. If <em>value</em> is NULL, the <em>name</em> is unset.
Modified: grass/trunk/lib/gis/testsuite/gis_lib_env_test.py
===================================================================
--- grass/trunk/lib/gis/testsuite/gis_lib_env_test.py 2015-01-04 22:02:37 UTC (rev 63953)
+++ grass/trunk/lib/gis/testsuite/gis_lib_env_test.py 2015-01-05 15:45:39 UTC (rev 63954)
@@ -21,7 +21,7 @@
self.assertEqual(value, "A")
# In memory management
- libgis.G__setenv("TEST", "B");
+ libgis.G_setenv_nogisrc("TEST", "B");
value = libgis.G__getenv("TEST")
self.assertEqual(value, "B")
@@ -35,12 +35,12 @@
self.assertEqual(value, "A")
def test_switch_env(self):
- libgis.G__setenv("TEST", "SWITCH");
- libgis.G__setenv2("TEST", "SWITCH2", libgis.G_VAR_MAPSET);
+ libgis.G_setenv_nogisrc("TEST", "SWITCH");
+ libgis.G_setenv_nogisrc2("TEST", "SWITCH2", libgis.G_VAR_MAPSET);
# Create alternative env
libgis.G_create_alt_env()
- libgis.G__setenv("TEST", "TARGET");
- libgis.G__setenv2("TEST", "TARGET2", libgis.G_VAR_MAPSET);
+ libgis.G_setenv_nogisrc("TEST", "TARGET");
+ libgis.G_setenv_nogisrc2("TEST", "TARGET2", libgis.G_VAR_MAPSET);
value = libgis.G_getenv("TEST")
self.assertEqual(value, "TARGET")
value = libgis.G_getenv2("TEST", libgis.G_VAR_MAPSET)
@@ -58,7 +58,7 @@
value = libgis.G_getenv2("TEST", libgis.G_VAR_MAPSET)
self.assertEqual(value, "C")
- libgis.G__setenv2("TEST", "D", libgis.G_VAR_MAPSET);
+ libgis.G_setenv_nogisrc2("TEST", "D", libgis.G_VAR_MAPSET);
value = libgis.G__getenv2("TEST", libgis.G_VAR_MAPSET)
self.assertEqual(value, "D")
# Force reading
More information about the grass-commit
mailing list