Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > 07b211314d30c89a6ab0be9c39e3bac3 > files > 6

doxygen-1.8.15-4.mga7.src.rpm

commit e26a5b8eed8a012e6a400f1ed6baf27980668b53
Author: Vladimír Vondruš <mosra@centrum.cz>
Date:   Sat Dec 29 21:30:51 2018 +0100

    testing: add a test for XML output with an empty TOC.
    
    Fails, in particular causes Doxygen to produce an empty (or truncated)
    XML file but returning with a success error code.

diff --git a/testing/079/empty.xml b/testing/079/empty.xml
new file mode 100644
index 00000000..3e1d6915
--- /dev/null
+++ b/testing/079/empty.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="">
+  <compounddef id="empty" kind="page">
+    <compoundname>empty</compoundname>
+    <title>An empty page</title>
+    <briefdescription>
+    </briefdescription>
+    <detaileddescription>
+<para>With an empty TOC. </para>
+    </detaileddescription>
+  </compounddef>
+</doxygen>
diff --git a/testing/079_tableofcontents.dox b/testing/079_tableofcontents.dox
new file mode 100644
index 00000000..499771d7
--- /dev/null
+++ b/testing/079_tableofcontents.dox
@@ -0,0 +1,9 @@
+// objective: test TOC generation for an empty page
+// check: empty.xml
+/**
+@page empty An empty page
+
+@tableofcontents
+
+With an empty TOC.
+*/