[libcalamares] Fix build of tests

- Typed in on FreeBSD, where it doesn't get built
This commit is contained in:
Adriaan de Groot 2020-04-23 11:45:12 +02:00
parent cca067a34d
commit 43c5e1fc96
2 changed files with 6 additions and 2 deletions

View File

@ -231,6 +231,8 @@ if( KPMcore_FOUND )
libcalamarespartitionkpmtest
SOURCES
partition/KPMTests.cpp
LIBRARIES
${OPTIONAL_PRIVATE_LIBRARIES}
)
endif()

View File

@ -22,12 +22,12 @@
#include <QtTest/QtTest>
class KPMTests
class KPMTests : public QObject
{
Q_OBJECT
public:
KPMTests();
~KPMTests() overr;
~KPMTests() override;
private Q_SLOTS:
void initTestCase();
@ -54,6 +54,8 @@ KPMTests::testFlagNames()
{
cDebug() << f << s;
names.append( s );
f <<= 1;
}
}