From 11c8873fc90c5685f35c6b335fb1d232c9a0e39e Mon Sep 17 00:00:00 2001 From: Arttu Tarkiainen Date: Tue, 11 Jan 2022 11:24:03 +0200 Subject: Fix executing tests when configured without libarchive support Change-Id: Iaac72aa3d856a10c830f018ceb5c6ad87f4f28a5 Reviewed-by: Katja Marttila --- .../extractarchiveoperationtest/tst_extractarchiveoperationtest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') 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()); -- cgit v1.2.3