[utilities/basket] src/tests: Assert that KTar::open() works
Pino Toscano <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 4681a39b0cc907c9751abcfa4d8321e35c4cec13 by Pino Toscano.
Committed on 07/08/2026 at 10:12.
Pushed by pino into branch 'master'.
Assert that KTar::open() works
M +1 -1 src/tests/archivetest.cpp
https://invent.kde.org/utilities/basket/-/commit/4681a39b0cc907c9751abcfa4d8321e35c4cec13
diff --git a/src/tests/archivetest.cpp b/src/tests/archivetest.cpp
index 1beef4e0..5c6e25a0 100644
--- a/src/tests/archivetest.cpp
+++ b/src/tests/archivetest.cpp
@@ -105,7 +105,7 @@ void ArchiveTest::initTestCase()
KTar archive(referenceData, QStringLiteral("application/x-gzip"));
// Open the archive
- archive.open(QIODevice::ReadOnly);
+ QVERIFY(archive.open(QIODevice::ReadOnly));
QString destination = QDir::currentPath();
archive.directory()->copyTo(destination, true);
archive.close();