aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/efl_mono
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2018-03-21 22:49:44 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2018-04-03 17:29:41 -0300
commiteac568f6dcdfdd8ab79d020e6a82a4b8666d17de (patch)
tree2733416322c86d66b65994ef09eb56a8eb281889 /src/tests/efl_mono
parentcsharp: Support argument marshalling in func ptrs (diff)
downloadefl-eac568f6dcdfdd8ab79d020e6a82a4b8666d17de.tar.gz
csharp: Silence test build warnings.
Was trying to modify const strings.
Diffstat (limited to 'src/tests/efl_mono')
-rw-r--r--src/tests/efl_mono/Structs.cs8
-rw-r--r--src/tests/efl_mono/libefl_mono_native_test.c4
2 files changed, 6 insertions, 6 deletions
diff --git a/src/tests/efl_mono/Structs.cs b/src/tests/efl_mono/Structs.cs
index 20707c141b..00bcb266ab 100644
--- a/src/tests/efl_mono/Structs.cs
+++ b/src/tests/efl_mono/Structs.cs
@@ -270,22 +270,22 @@ class TestStructs
{
var simple = structSimpleWithValues();
int original = simple.Fint;
- simple.Fstring = "Struct Ptr In";
+ simple.Fmstring = "Struct Ptr In";
test.Testing t = new test.TestingConcrete();
Test.Assert(t.StructSimplePtrIn(ref simple));
Test.AssertEquals(-original, simple.Fint);
- Test.AssertEquals("nI rtP tcurtS", simple.Fstring);
+ Test.AssertEquals("nI rtP tcurtS", simple.Fmstring);
}
public static void simple_ptr_in_own()
{
var simple = structSimpleWithValues();
int original = simple.Fint;
- simple.Fstring = "Struct Ptr In Own";
+ simple.Fmstring = "Struct Ptr In Own";
test.Testing t = new test.TestingConcrete();
test.StructSimple result = t.StructSimplePtrInOwn(ref simple);
Test.AssertEquals(-original, result.Fint);
- Test.AssertEquals("nwO nI rtP tcurtS", result.Fstring);
+ Test.AssertEquals("nwO nI rtP tcurtS", result.Fmstring);
}
public static void simple_out()
diff --git a/src/tests/efl_mono/libefl_mono_native_test.c b/src/tests/efl_mono/libefl_mono_native_test.c
index fff2173ae8..b16c1625f9 100644
--- a/src/tests/efl_mono/libefl_mono_native_test.c
+++ b/src/tests/efl_mono/libefl_mono_native_test.c
@@ -3375,7 +3375,7 @@ EOLIAN
Eina_Bool _test_testing_struct_simple_ptr_in(EINA_UNUSED Eo *obj, EINA_UNUSED Test_Testing_Data *pd, Test_StructSimple *simple)
{
simple->fint = -simple->fint;
- _reverse_string(simple->fstring);
+ _reverse_string(simple->fmstring);
return EINA_TRUE;
}
@@ -3385,7 +3385,7 @@ Test_StructSimple _test_testing_struct_simple_ptr_in_own(EINA_UNUSED Eo *obj, EI
Test_StructSimple ret = *simple;
free(simple);
ret.fint = -ret.fint;
- _reverse_string(ret.fstring);
+ _reverse_string(ret.fmstring);
return ret;
}