akondi-mime5/akonadi-mime5/autotests/racetest.h
Ward from fusion-voyager-3 a8e7e301c1
Some checks failed
PikaOS Package Build & Release (Canary) (amd64-v3) / build (push) Failing after 12s
fixx akondi
2024-08-05 17:19:50 +03:00

33 lines
709 B
C++

/*
SPDX-FileCopyrightText: 2009 Constantin Berzan <exit3219@gmail.com>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#pragma once
#include <QList>
#include <QObject>
class KProcess;
/**
This tests the ability of LocalFolders to exist peacefully in multiple processes.
The main instance (normally the first one created) is supposed to create the
resource and collections, while the other instances are supposed to wait and
then just fetch the collections.
*/
class RaceTest : public QObject
{
Q_OBJECT
private Q_SLOTS:
void initTestCase();
void testMultipleProcesses_data();
void testMultipleProcesses();
void killZombies();
private:
QList<KProcess *> procs;
};