[gtk-doc] tests: add testcase for bug #705633
- From: Stefan Kost <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] tests: add testcase for bug #705633
- Date: Sun, 9 Feb 2014 12:09:03 +0000 (UTC)
commit 875aca280c722e60ab51c2a11f326661607c5ba0
Author: Alexander Kanavin <alexander kanavin intel com>
Date: Fri Aug 9 20:07:39 2013 +0300
tests: add testcase for bug #705633
tests/empty.sh | 5 +++++
tests/empty/src/tester.c | 12 ++++++++++++
tests/empty/src/tester.h | 10 ++++++++++
3 files changed, 27 insertions(+), 0 deletions(-)
---
diff --git a/tests/empty.sh b/tests/empty.sh
index 9f54325..b4e824a 100755
--- a/tests/empty.sh
+++ b/tests/empty.sh
@@ -1,4 +1,9 @@
#!/bin/sh
+if ! grep -q ^GtkDocTestIf$ empty/docs/tester-sections.txt; then
+ echo "Test for bug https://bugzilla.gnome.org/show_bug.cgi?id=705633 has failed."
+ exit 1
+fi
+
gtkdoctest.sh empty
diff --git a/tests/empty/src/tester.c b/tests/empty/src/tester.c
index e8d4dee..8f69faf 100644
--- a/tests/empty/src/tester.c
+++ b/tests/empty/src/tester.c
@@ -21,3 +21,15 @@
void test (gint a) {
}
+/**
+ * GtkDocTestIf:
+ *
+ * test object
+ */
+/**
+ * GtkDocTestIfInterface:
+ * @parent: parent interface type.
+ *
+ * test interface
+ */
+
diff --git a/tests/empty/src/tester.h b/tests/empty/src/tester.h
index d204b74..23ab4ea 100644
--- a/tests/empty/src/tester.h
+++ b/tests/empty/src/tester.h
@@ -2,9 +2,19 @@
#define GTKDOC_TESTER_H
#include <glib.h>
+#include <glib-object.h>
void test (gint a);
+// test for https://bugzilla.gnome.org/show_bug.cgi?id=705633
+typedef struct _GtkDocTestIf GtkDocTestIf;
+typedef struct _GtkDocTestIfInterface GtkDocTestIfInterface;
+
+struct _GtkDocTestIfInterface {
+ GTypeInterface parent;
+
+};
+
#endif // GTKDOC_TESTER_H
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]