summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorArttu Tarkiainen <arttu.tarkiainen@qt.io>2022-01-11 11:24:03 +0200
committerArttu Tarkiainen <arttu.tarkiainen@qt.io>2022-01-11 11:13:46 +0000
commit11c8873fc90c5685f35c6b335fb1d232c9a0e39e (patch)
treef94eea205d57cff2d33955238d39871da0da44f0 /tests
parent5ec5af811a9a4146f32378bbd80acfbb5a46f621 (diff)
Fix executing tests when configured without libarchive support
Change-Id: Iaac72aa3d856a10c830f018ceb5c6ad87f4f28a5 Reviewed-by: Katja Marttila <katja.marttila@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/installer/extractarchiveoperationtest/tst_extractarchiveoperationtest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/installer/extractarchiveoperationtest/tst_extractarchiveoperationtest.cpp b/tests/auto/installer/extractarchiveoperationtest/tst_extractarchiveoperationtest.cpp
index 658694fe9..8ceaa76c7 100644
--- a/tests/auto/installer/extractarchiveoperationtest/tst_extractarchiveoperationtest.cpp
+++ b/tests/auto/installer/extractarchiveoperationtest/tst_extractarchiveoperationtest.cpp
@@ -1,6 +1,6 @@
/**************************************************************************
**
-** Copyright (C) 2017 The Qt Company Ltd.
+** Copyright (C) 2022 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the Qt Installer Framework.
@@ -98,7 +98,7 @@ private slots:
QFile extractedFile(m_testDirectory + QDir::separator() + "FolderForContent/content.txt");
QVERIFY(extractedFile.exists());
-
+#ifdef IFW_LIBARCHIVE
extractedFile.setFileName(m_testDirectory + QDir::separator() + "FolderForTarGzContent/content.txt");
QVERIFY(extractedFile.exists());
@@ -110,7 +110,7 @@ private slots:
extractedFile.setFileName(m_testDirectory + QDir::separator() + "FolderForZipContent/content.txt");
QVERIFY(extractedFile.exists());
-
+#endif
extractedFile.setFileName(m_testDirectory + QDir::separator() + "FolderForAnotherContent/anothercontent.txt");
QVERIFY(extractedFile.exists());