Blame doxygen-1.8.15-test_for_XML_output_with_an_empty_TOC.patch

Than Ngo 73e6d6
commit e26a5b8eed8a012e6a400f1ed6baf27980668b53
Than Ngo 73e6d6
Author: Vladimír Vondruš <mosra@centrum.cz>
Than Ngo 73e6d6
Date:   Sat Dec 29 21:30:51 2018 +0100
Than Ngo 73e6d6
Than Ngo 73e6d6
    testing: add a test for XML output with an empty TOC.
Than Ngo 73e6d6
    
Than Ngo 73e6d6
    Fails, in particular causes Doxygen to produce an empty (or truncated)
Than Ngo 73e6d6
    XML file but returning with a success error code.
Than Ngo 73e6d6
Than Ngo 73e6d6
diff --git a/testing/079/empty.xml b/testing/079/empty.xml
Than Ngo 73e6d6
new file mode 100644
Than Ngo 73e6d6
index 00000000..3e1d6915
Than Ngo 73e6d6
--- /dev/null
Than Ngo 73e6d6
+++ b/testing/079/empty.xml
Than Ngo 73e6d6
@@ -0,0 +1,12 @@
Than Ngo 73e6d6
+
Than Ngo 73e6d6
+<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="">
Than Ngo 73e6d6
+  <compounddef id="empty" kind="page">
Than Ngo 73e6d6
+    <compoundname>empty</compoundname>
Than Ngo 73e6d6
+    <title>An empty page</title>
Than Ngo 73e6d6
+    <briefdescription>
Than Ngo 73e6d6
+    </briefdescription>
Than Ngo 73e6d6
+    <detaileddescription>
Than Ngo 73e6d6
+<para>With an empty TOC. </para>
Than Ngo 73e6d6
+    </detaileddescription>
Than Ngo 73e6d6
+  </compounddef>
Than Ngo 73e6d6
+</doxygen>
Than Ngo 73e6d6
diff --git a/testing/079_tableofcontents.dox b/testing/079_tableofcontents.dox
Than Ngo 73e6d6
new file mode 100644
Than Ngo 73e6d6
index 00000000..499771d7
Than Ngo 73e6d6
--- /dev/null
Than Ngo 73e6d6
+++ b/testing/079_tableofcontents.dox
Than Ngo 73e6d6
@@ -0,0 +1,9 @@
Than Ngo 73e6d6
+// objective: test TOC generation for an empty page
Than Ngo 73e6d6
+// check: empty.xml
Than Ngo 73e6d6
+/**
Than Ngo 73e6d6
+@page empty An empty page
Than Ngo 73e6d6
+
Than Ngo 73e6d6
+@tableofcontents
Than Ngo 73e6d6
+
Than Ngo 73e6d6
+With an empty TOC.
Than Ngo 73e6d6
+*/