summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-29 11:24:55 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-29 11:24:55 +0100
commit83bbcc33ef6bf4d451b8ac86b67e85248726b69e (patch)
treead434260d25d3d31044c5d4078619855b14fdc32
parent3efca7561558366f7deb49ddf3fa9231d7e92506 (diff)
eolian: tests for extern struct/typedef not-generation
-rw-r--r--src/tests/eolian/data/struct.eo4
-rw-r--r--src/tests/eolian/data/typedef.eo2
-rw-r--r--src/tests/eolian/eolian_parsing.c2
3 files changed, 8 insertions, 0 deletions
diff --git a/src/tests/eolian/data/struct.eo b/src/tests/eolian/data/struct.eo
index 68b7bb5b7a..6b33952e4b 100644
--- a/src/tests/eolian/data/struct.eo
+++ b/src/tests/eolian/data/struct.eo
@@ -10,6 +10,10 @@ struct Another {
10/* opaque struct */ 10/* opaque struct */
11struct Opaque; 11struct Opaque;
12 12
13struct @extern Not.Generated {
14 field: int;
15}
16
13class Struct { 17class Struct {
14 methods { 18 methods {
15 foo { 19 foo {
diff --git a/src/tests/eolian/data/typedef.eo b/src/tests/eolian/data/typedef.eo
index ddace8e733..33c612a961 100644
--- a/src/tests/eolian/data/typedef.eo
+++ b/src/tests/eolian/data/typedef.eo
@@ -1,6 +1,8 @@
1type Evas.Coord: int; /* Simple type definition */ 1type Evas.Coord: int; /* Simple type definition */
2type List_Objects: own(list<Eo *>*); /* A little more complex */ 2type List_Objects: own(list<Eo *>*); /* A little more complex */
3 3
4type @extern Evas.Pants: float; /* not generated */
5
4enum Enum.Bar 6enum Enum.Bar
5{ 7{
6 legacy: bar; 8 legacy: bar;
diff --git a/src/tests/eolian/eolian_parsing.c b/src/tests/eolian/eolian_parsing.c
index 70c40bbfb2..1d24434739 100644
--- a/src/tests/eolian/eolian_parsing.c
+++ b/src/tests/eolian/eolian_parsing.c
@@ -398,6 +398,8 @@ START_TEST(eolian_typedef)
398 fail_if(!eina_iterator_next(iter, (void**)&atype)); 398 fail_if(!eina_iterator_next(iter, (void**)&atype));
399 fail_if(!(type_name = eolian_type_name_get(atype))); 399 fail_if(!(type_name = eolian_type_name_get(atype)));
400 fail_if(strcmp(type_name, "List_Objects")); 400 fail_if(strcmp(type_name, "List_Objects"));
401 /* not generated extern, skip */
402 fail_if(!eina_iterator_next(iter, (void**)&atype));
401 fail_if(eina_iterator_next(iter, (void**)&atype)); 403 fail_if(eina_iterator_next(iter, (void**)&atype));
402 404
403 eolian_shutdown(); 405 eolian_shutdown();