File indexing completed on 2024-04-28 11:35:07
0001 /* 0002 This file is part of the KDE project 0003 SPDX-FileCopyrightText: 2019 David Hallas <david@davidhallas.dk> 0004 0005 SPDX-License-Identifier: LGPL-2.0-only 0006 */ 0007 0008 #include "klistopenfilesjobtest_win.h" 0009 #include "klistopenfilesjob.h" 0010 #include <QCoreApplication> 0011 #include <QStringLiteral> 0012 #include <QTest> 0013 0014 QTEST_MAIN(KListOpenFilesJobTest) 0015 0016 void KListOpenFilesJobTest::testNotSupported() 0017 { 0018 QDir path(QCoreApplication::applicationDirPath()); 0019 auto job = new KListOpenFilesJob(path.path()); 0020 job->exec(); 0021 QCOMPARE(job->error(), static_cast<int>(KListOpenFilesJob::Error::NotSupported)); 0022 QCOMPARE(job->errorText(), QStringLiteral("KListOpenFilesJob is not supported on Windows")); 0023 QVERIFY(job->processInfoList().empty()); 0024 } 0025 0026 #include "moc_klistopenfilesjobtest_win.cpp"