eolian: tests for extern struct/typedef not-generation

This commit is contained in:
Daniel Kolesa 2015-05-29 11:24:55 +01:00
parent 3efca75615
commit 83bbcc33ef
3 changed files with 8 additions and 0 deletions

View File

@ -10,6 +10,10 @@ struct Another {
/* opaque struct */
struct Opaque;
struct @extern Not.Generated {
field: int;
}
class Struct {
methods {
foo {

View File

@ -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;

View File

@ -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();