From 3be71b72560eaf60433066bfb0580427487e192b Mon Sep 17 00:00:00 2001 From: Rodrigo Avancini Date: Wed, 1 Apr 2020 16:45:02 -0300 Subject: [PATCH] problem on linux #2331. --- packages/gis/tests/functional/basic/Project.lua | 12 ++++++++++-- packages/gis/tests/functional/basic/TerraLib.lua | 6 +++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/packages/gis/tests/functional/basic/Project.lua b/packages/gis/tests/functional/basic/Project.lua index 681d14e8..807cb513 100644 --- a/packages/gis/tests/functional/basic/Project.lua +++ b/packages/gis/tests/functional/basic/Project.lua @@ -439,7 +439,11 @@ return { unitTest:assertEquals(l2.name, cl1Name) unitTest:assertEquals(l2.rep, "polygon") - unitTest:assertEquals(l2.epsg, 4019) + if _Gtme.sessionInfo().system == "windows" then + unitTest:assertEquals(l2.epsg, 4019) --SKIP + else + unitTest:assertEquals(l2.epsg, 4674) --SKIP + end unitTest:assertEquals(File(l2.file):name(), "SPCells.shp") unitTest:assertEquals(l2.source, "shp") unitTest:assertEquals(l2.encoding, "latin1") @@ -451,7 +455,11 @@ return { unitTest:assertEquals(l3.name, "SP") unitTest:assertEquals(l3.rep, "polygon") - unitTest:assertEquals(l3.epsg, 4019) + if _Gtme.sessionInfo().system == "windows" then + unitTest:assertEquals(l3.epsg, 4019) --SKIP + else + unitTest:assertEquals(l3.epsg, 4674) --SKIP + end unitTest:assertEquals(File(l3.file):name(), "sampa.shp") unitTest:assertEquals(l3.source, "shp") unitTest:assertEquals(l3.encoding, "latin1") diff --git a/packages/gis/tests/functional/basic/TerraLib.lua b/packages/gis/tests/functional/basic/TerraLib.lua index 4dbb1c81..2ee3ccc5 100644 --- a/packages/gis/tests/functional/basic/TerraLib.lua +++ b/packages/gis/tests/functional/basic/TerraLib.lua @@ -265,7 +265,11 @@ return { unitTest:assertEquals(info.name, "SP") unitTest:assertEquals(info.rep, "polygon") - unitTest:assertEquals(info.srid, 4019) + if _Gtme.sessionInfo().system == "windows" then + unitTest:assertEquals(info.srid, 4019) --SKIP + else + unitTest:assertEquals(info.srid, 4674) --SKIP + end unitTest:assertEquals(File(info.file):name(), "sampa.shp") unitTest:assertEquals(info.source, "shp") unitTest:assertEquals(info.encoding, "LATIN1")