q66 pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=83bbcc33ef6bf4d451b8ac86b67e85248726b69e

commit 83bbcc33ef6bf4d451b8ac86b67e85248726b69e
Author: Daniel Kolesa <d.kol...@osg.samsung.com>
Date:   Fri May 29 11:24:55 2015 +0100

    eolian: tests for extern struct/typedef not-generation
---
 src/tests/eolian/data/struct.eo   | 4 ++++
 src/tests/eolian/data/typedef.eo  | 2 ++
 src/tests/eolian/eolian_parsing.c | 2 ++
 3 files changed, 8 insertions(+)

diff --git a/src/tests/eolian/data/struct.eo b/src/tests/eolian/data/struct.eo
index 68b7bb5..6b33952 100644
--- a/src/tests/eolian/data/struct.eo
+++ b/src/tests/eolian/data/struct.eo
@@ -10,6 +10,10 @@ struct Another {
 /* opaque struct */
 struct Opaque;
 
+struct @extern Not.Generated {
+    field: int;
+}
+
 class Struct {
    methods {
       foo {
diff --git a/src/tests/eolian/data/typedef.eo b/src/tests/eolian/data/typedef.eo
index ddace8e..33c612a 100644
--- a/src/tests/eolian/data/typedef.eo
+++ b/src/tests/eolian/data/typedef.eo
@@ -1,6 +1,8 @@
 type Evas.Coord: int; /* Simple type definition */
 type List_Objects: own(list<Eo *>*); /* A little more complex */
 
+type @extern Evas.Pants: float; /* not generated */
+
 enum Enum.Bar
 {
    legacy: bar;
diff --git a/src/tests/eolian/eolian_parsing.c 
b/src/tests/eolian/eolian_parsing.c
index 70c40bb..1d24434 100644
--- a/src/tests/eolian/eolian_parsing.c
+++ b/src/tests/eolian/eolian_parsing.c
@@ -398,6 +398,8 @@ START_TEST(eolian_typedef)
    fail_if(!eina_iterator_next(iter, (void**)&atype));
    fail_if(!(type_name = eolian_type_name_get(atype)));
    fail_if(strcmp(type_name, "List_Objects"));
+   /* not generated extern, skip */
+   fail_if(!eina_iterator_next(iter, (void**)&atype));
    fail_if(eina_iterator_next(iter, (void**)&atype));
 
    eolian_shutdown();

-- 


Reply via email to