summaryrefslogtreecommitdiff
path: root/tests/scanner
diff options
context:
space:
mode:
authorDieter Verfaillie <dieterv@optionexplicit.be>2013-01-03 08:01:10 +0100
committerDieter Verfaillie <dieterv@optionexplicit.be>2013-01-09 20:29:55 +0100
commit6b36bb4f78b7005aae8173c9c2712d7ef5d2c442 (patch)
tree59d37cd3f8fe9c150017115311cfea504dc92ecd /tests/scanner
parentd20a932d36107eed33bd57b4ce27868b8e52802e (diff)
downloadgobject-introspection-6b36bb4f78b7005aae8173c9c2712d7ef5d2c442.tar.gz
giscanner: Don't fail on empty GTK-Doc comment blocks
A completely empty GTK-Doc comment block (/**\n*/) resulted in an unfriendly backtrace, complaining about an "AttributeError: 'NoneType' object has no attribute 'comment'" This fixes the issue and adds a test case. https://bugzilla.gnome.org/show_bug.cgi?id=690850
Diffstat (limited to 'tests/scanner')
-rw-r--r--tests/scanner/annotationparser/gi/syntax.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/scanner/annotationparser/gi/syntax.xml b/tests/scanner/annotationparser/gi/syntax.xml
index 83c56b9b..f07e4fbd 100644
--- a/tests/scanner/annotationparser/gi/syntax.xml
+++ b/tests/scanner/annotationparser/gi/syntax.xml
@@ -71,6 +71,14 @@ something */</commentblock>
<test>
<!--
+ Not GTK-Doc
+ -->
+ <commentblock>/**
+*/</commentblock>
+</test>
+
+<test>
+ <!--
Technically not GTK-Doc, but we need to support this for backwards compatibility
-->
<commentblock>/**