File indexing completed on 2024-05-12 05:11:09
0001 /* 0002 SPDX-FileCopyrightText: 2009 Constantin Berzan <exit3219@gmail.com> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <QList> 0010 #include <QObject> 0011 0012 class KProcess; 0013 0014 /** 0015 This tests the ability of LocalFolders to exist peacefully in multiple processes. 0016 The main instance (normally the first one created) is supposed to create the 0017 resource and collections, while the other instances are supposed to wait and 0018 then just fetch the collections. 0019 */ 0020 class RaceTest : public QObject 0021 { 0022 Q_OBJECT 0023 0024 private Q_SLOTS: 0025 void initTestCase(); 0026 void testMultipleProcesses_data(); 0027 void testMultipleProcesses(); 0028 void killZombies(); 0029 0030 private: 0031 QList<KProcess *> procs; 0032 };