summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2012-12-05 15:40:15 -0500
committerColin Walters <walters@verbum.org>2012-12-05 15:40:15 -0500
commit2663872328758510c713546c610c12af05ffecb3 (patch)
tree7e6237f3d30c2de07a3af420fcbe6c68593bc9d8
parent68a4a3eea119704817f540efa803e2197fe52838 (diff)
downloadgobject-introspection-2663872328758510c713546c610c12af05ffecb3.tar.gz
tests: Fix up WarnLib build, remove accidental additions to regress.c
Previous WarnLib commit was broken.
-rw-r--r--tests/scanner/Makefile.am2
-rw-r--r--tests/scanner/WarnLib-1.0-expected.gir32
-rw-r--r--tests/scanner/regress.c14
3 files changed, 33 insertions, 15 deletions
diff --git a/tests/scanner/Makefile.am b/tests/scanner/Makefile.am
index 01c4ea53..ba2a58bf 100644
--- a/tests/scanner/Makefile.am
+++ b/tests/scanner/Makefile.am
@@ -81,7 +81,7 @@ WarnLib-1.0.gir: $(top_builddir)/Gio-2.0.gir libwarnlib.la
WarnLib_1_0_gir_LIBS = libwarnlib.la
WarnLib_1_0_gir_INCLUDES = Gio-2.0
WarnLib_1_0_gir_FILES = $(libwarnlib_la_SOURCES)
-WarnLib_1_0_gir_SCANNERFLAGS = --c-include="warnlib.h"
+WarnLib_1_0_gir_SCANNERFLAGS = --c-include="warnlib.h" --symbol-prefix=warnlib_
GIRS += WarnLib-1.0.gir
Annotation-1.0.gir: Utility-1.0.gir libannotation.la
diff --git a/tests/scanner/WarnLib-1.0-expected.gir b/tests/scanner/WarnLib-1.0-expected.gir
new file mode 100644
index 00000000..9f3b348d
--- /dev/null
+++ b/tests/scanner/WarnLib-1.0-expected.gir
@@ -0,0 +1,32 @@
+<?xml version="1.0"?>
+<!-- This file was automatically generated from C sources - DO NOT EDIT!
+To affect the contents of this file, edit the original C definitions,
+and/or use gtk-doc annotations. -->
+<repository version="1.2"
+ xmlns="http://www.gtk.org/introspection/core/1.0"
+ xmlns:c="http://www.gtk.org/introspection/c/1.0"
+ xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
+ <include name="GLib" version="2.0"/>
+ <include name="GObject" version="2.0"/>
+ <include name="Gio" version="2.0"/>
+ <c:include name="warnlib.h"/>
+ <namespace name="WarnLib"
+ version="1.0"
+ shared-library=""
+ c:identifier-prefixes="WarnLib"
+ c:symbol-prefixes="warnlib_">
+ <function name="throw_unpaired"
+ c:identifier="warnlib_throw_unpaired"
+ throws="1">
+ <return-value transfer-ownership="none">
+ <type name="gboolean" c:type="gboolean"/>
+ </return-value>
+ </function>
+ <function name="unpaired_error_quark"
+ c:identifier="warnlib_unpaired_error_quark">
+ <return-value transfer-ownership="none">
+ <type name="GLib.Quark" c:type="GQuark"/>
+ </return-value>
+ </function>
+ </namespace>
+</repository>
diff --git a/tests/scanner/regress.c b/tests/scanner/regress.c
index 27791d7e..b7526bfb 100644
--- a/tests/scanner/regress.c
+++ b/tests/scanner/regress.c
@@ -1656,20 +1656,6 @@ regress_atest_error_quark (void)
return g_quark_from_static_string ("regress-atest-error");
}
-GQuark
-regress_unpaired_error_quark (void)
-{
- return g_quark_from_static_string ("regress-unpaired-error");
-}
-
-gboolean
-regress_throw_unpaired (GError **error)
-{
- g_set_error_literal (error, regress_unpaired_error_quark (), 0,
- "Unpaired error");
- return FALSE;
-}
-
/* structures */
/**