summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-07-30 17:36:52 -0300
committerVitor Sousa <vitorsousa@expertisesolutions.com.br>2019-07-30 17:57:24 -0300
commit119d26f43f7f8cf3a81a819aa3a86f29e4176eb5 (patch)
treefe07fcac516f770afa11e807de49ed8c8bb0dcb9 /src
parentd0e10dd2734ce9d1cac6569e4c2c3975dbffcbe8 (diff)
csharp: Add EFL_BETA guards around new test
Summary: The test method is not generated when beta is disabled as `Eina.Value_Type` is marked @beta and eolian complains if we try to use it. Other `Eina.Value` methods work despite `Eina.Value` also being beta due to its usage as stable through the keyword `any_value[_ptr]`. Reviewers: vitor.sousa, bu5hm4n, felipealmeida Reviewed By: vitor.sousa Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9449
Diffstat (limited to 'src')
-rw-r--r--src/tests/efl_mono/ValueEolian.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tests/efl_mono/ValueEolian.cs b/src/tests/efl_mono/ValueEolian.cs
index 945228a6db..80ec70e589 100644
--- a/src/tests/efl_mono/ValueEolian.cs
+++ b/src/tests/efl_mono/ValueEolian.cs
@@ -161,6 +161,9 @@ public static class TestEinaValueEolian {
161 Test.AssertEquals(Eina.ValueType.Int32, received.GetValueType()); 161 Test.AssertEquals(Eina.ValueType.Int32, received.GetValueType());
162 } 162 }
163 163
164// ValueType in eolian context is beta, so not allowed.
165// Value does not have this problem as it is used as any_value/any_value_ptr
166#if EFL_BETA
164 public static void TestEolianEinaValueTypeMarshalling() 167 public static void TestEolianEinaValueTypeMarshalling()
165 { 168 {
166 var obj = new Dummy.TestObject(); 169 var obj = new Dummy.TestObject();
@@ -171,6 +174,7 @@ public static class TestEinaValueEolian {
171 Test.AssertEquals(type, obj.MirrorValueType(type)); 174 Test.AssertEquals(type, obj.MirrorValueType(type));
172 } 175 }
173 } 176 }
177#endif
174} 178}
175#pragma warning restore 1591 179#pragma warning restore 1591
176} 180}