File: testhelpers.cpp

package info (click to toggle)
zanshin 25.12.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,668 kB
  • sloc: cpp: 35,501; xml: 1,405; sh: 16; makefile: 5
file content (20 lines) | stat: -rw-r--r-- 382 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * SPDX-FileCopyrightText: 2015 Kevin Ottens <ervin@kde.org>
 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/


#include "testhelpers.h"

#include <QTest>

#include "utils/jobhandler.h"

using namespace Testlib;

void TestHelpers::waitForEmptyJobQueue()
{
    while (Utils::JobHandler::jobCount() != 0) {
        QTest::qWait(20);
    }
}