forked from enlightenment/efl
csharp: Silence test build warnings.
Was trying to modify const strings.
This commit is contained in:
parent
bffe42e71b
commit
eac568f6dc
|
@ -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()
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue