[office/tellico/4.2] src/tests: Add additional file check to test

Robby Stephenson <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit e132bfe87d92f4323606e872a2422bc694bf78ae by Robby Stephenson.
Committed on 26/07/2026 at 18:05.
Pushed by rstephenson into branch '4.2'.

Add additional file check to test

M  +3    -1    src/tests/htmlexportertest.cpp

https://invent.kde.org/office/tellico/-/commit/e132bfe87d92f4323606e872a2422bc694bf78ae

diff --git a/src/tests/htmlexportertest.cpp b/src/tests/htmlexportertest.cpp
index 6748c0466..e239d7e90 100644
--- a/src/tests/htmlexportertest.cpp
+++ b/src/tests/htmlexportertest.cpp
@@ -495,6 +495,7 @@ void HtmlExporterTest::testNoFields() {
   exporter.setEntryXSLTFile(QStringLiteral("Fancy"));
 
   QVERIFY(exporter.exec());
+  QVERIFY(QFile::exists(tempDir.path() + "/testHtml_files/entry-1.html"));
 }
 
 // https://bugs.kde.org/show_bug.cgi?id=523140
@@ -510,7 +511,7 @@ void HtmlExporterTest::testNoTitle() {
 
   QTemporaryDir tempDir;
   QVERIFY(tempDir.isValid());
-  tempDir.setAutoRemove(true);
+  tempDir.setAutoRemove(false);
 
   Tellico::Export::HTMLExporter exporter(coll, QUrl());
   exporter.setURL(QUrl::fromLocalFile(tempDir.path() + "/testHtml.html"));
@@ -521,4 +522,5 @@ void HtmlExporterTest::testNoTitle() {
   exporter.setEntryXSLTFile(QStringLiteral("Fancy"));
 
   QVERIFY(exporter.exec());
+  QVERIFY(QFile::exists(tempDir.path() + "/testHtml_files/test-1.html"));
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.