summaryrefslogtreecommitdiff
path: root/src/lib/efl_mono
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-11-07 22:46:15 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2019-11-07 22:46:15 -0300
commit77207f9b5855189a4e818ed087f702080afc2068 (patch)
treea2e2f69541ac912a69e4ffe374beb1ee125d738c /src/lib/efl_mono
parent01bf9a34d667466417b807a1187b2bc4ba6fa87f (diff)
csharp: Fix running headless tests in dotnet
Summary: CoreCLR, the runtime of dotnet, has some issues regarding storing environment variables (see dotnet/coreclr issue #15812), keeping them in a local cache instead of flushing to the native `setenv`. This commit replaces the usage of `System.Environment.SetEnvironmentVariable` with a `setenv` wrapper. Test Plan: Run without DISPLAY set and with dotnet. Reviewers: felipealmeida, brunobelo, segfaultxavi, YOhoho Reviewed By: brunobelo Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10619
Diffstat (limited to 'src/lib/efl_mono')
-rw-r--r--src/lib/efl_mono/efl_custom_exports_mono.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/efl_mono/efl_custom_exports_mono.c b/src/lib/efl_mono/efl_custom_exports_mono.c
index c3e8191e22..ede573f875 100644
--- a/src/lib/efl_mono/efl_custom_exports_mono.c
+++ b/src/lib/efl_mono/efl_custom_exports_mono.c
@@ -202,6 +202,17 @@ EAPI Efl_Substitute_Ctor_Cb efl_mono_avoid_top_level_constructor_callback_addr_g
202 return &_efl_mono_avoid_top_level_constructor_cb; 202 return &_efl_mono_avoid_top_level_constructor_cb;
203} 203}
204 204
205// Environment wrappers //
206EAPI const char *efl_mono_native_getenv(const char *name)
207{
208 return getenv(name);
209}
210
211EAPI Eina_Error efl_mono_native_setenv(const char *name, const char *value, int overwrite)
212{
213 return setenv(name, value, overwrite);
214}
215
205// Iterator Wrapper // 216// Iterator Wrapper //
206 217
207typedef struct _Eina_Iterator_Wrapper_Mono 218typedef struct _Eina_Iterator_Wrapper_Mono