diff options
author | Colin Walters <walters@verbum.org> | 2012-07-02 16:06:00 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2012-07-02 16:06:00 -0400 |
commit | b8625d15100abbef264d905c47863149572c6520 (patch) | |
tree | 32b6a2f8a8e851664092a314824c37da1a0b3c88 | |
parent | 85fb65b67c2cc80c70dd62d9abbd1a7aec7fc570 (diff) | |
download | gobject-introspection-b8625d15100abbef264d905c47863149572c6520.tar.gz |
tests: Add SLetter
This test case has a single-letter symbol prefix, which triggers
edge cases in the difference between prefix handling.
See https://bugzilla.gnome.org/show_bug.cgi?id=637025
-rw-r--r-- | tests/scanner/Makefile.am | 13 | ||||
-rw-r--r-- | tests/scanner/sletter.c | 9 | ||||
-rw-r--r-- | tests/scanner/sletter.h | 13 |
3 files changed, 35 insertions, 0 deletions
diff --git a/tests/scanner/Makefile.am b/tests/scanner/Makefile.am index 0e5ddb53..0db77ccc 100644 --- a/tests/scanner/Makefile.am +++ b/tests/scanner/Makefile.am @@ -4,6 +4,7 @@ include $(top_srcdir)/Makefile.introspection INTROSPECTION_SCANNER_ARGS += --warn-all check_LTLIBRARIES = \ + libsletter.la \ libannotation.la \ libtestinherit.la \ libfoo.la \ @@ -21,6 +22,11 @@ AM_CFLAGS = $(GIO_CFLAGS) $(GOBJECT_CFLAGS) $(GTHREAD_CFLAGS) AM_LDFLAGS = -rpath /unused -avoid-version LIBS = $(GOBJECT_LIBS) $(GTHREAD_LIBS) +libsletter_la_SOURCES = $(srcdir)/sletter.c $(srcdir)/sletter.h +libsletter_la_LIBADD = $(GIO_LIBS) +libsletter_la_CFLAGS = $(AM_CFLAGS) +libsletter_la_LDFLAGS = $(AM_LDFLAGS) + libannotation_la_SOURCES = $(srcdir)/annotation.c $(srcdir)/annotation.h libtestinherit_la_SOURCES = $(srcdir)/drawable.c $(srcdir)/drawable.h libfoo_la_SOURCES = $(srcdir)/foo.c $(srcdir)/foo.h @@ -51,6 +57,13 @@ INTROSPECTION_GIRS = $(GIRS) CLEANFILES = $(TYPELIBS) $(GIRS) EXTRA_DIST = $(EXPECTEDGIRS) +SLetter-1.0.gir: $(top_builddir)/Gio-2.0.gir libsletter.la +SLetter_1_0_gir_LIBS = libsletter.la +SLetter_1_0_gir_INCLUDES = Gio-2.0 +SLetter_1_0_gir_FILES = $(libsletter_la_SOURCES) +SLetter_1_0_gir_SCANNERFLAGS = --identifier-prefix=S --c-include="sletter.h" --warn-error +GIRS += SLetter-1.0.gir + Regress-1.0.gir: $(top_builddir)/Gio-2.0.gir libregress.la Regress_1_0_gir_LIBS = libregress.la Regress_1_0_gir_INCLUDES = cairo-1.0 Gio-2.0 diff --git a/tests/scanner/sletter.c b/tests/scanner/sletter.c new file mode 100644 index 00000000..81746d7b --- /dev/null +++ b/tests/scanner/sletter.c @@ -0,0 +1,9 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ + +#include "sletter.h" + +void +s_hello (void) +{ + g_print ("hello world\n"); +} diff --git a/tests/scanner/sletter.h b/tests/scanner/sletter.h new file mode 100644 index 00000000..09965b88 --- /dev/null +++ b/tests/scanner/sletter.h @@ -0,0 +1,13 @@ +#ifndef __SLETTER_H__ +#define __SLETTER_H__ + +#include <gio/gio.h> + +typedef struct { + double x; + double y; +} SPoint; + +void s_hello (void); + +#endif |