machineid: document flaky test
This commit is contained in:
parent
aaa82386d8
commit
a649b67880
@ -19,6 +19,8 @@
|
|||||||
#include <QFile>
|
#include <QFile>
|
||||||
#include <QtTest/QtTest>
|
#include <QtTest/QtTest>
|
||||||
|
|
||||||
|
#include <KOSRelease>
|
||||||
|
|
||||||
// Internals of Workers.cpp
|
// Internals of Workers.cpp
|
||||||
extern int getUrandomPoolSize();
|
extern int getUrandomPoolSize();
|
||||||
|
|
||||||
@ -148,8 +150,21 @@ MachineIdTests::testPoolSize()
|
|||||||
// It hardly makes sense, but also the /proc entry is missing
|
// It hardly makes sense, but also the /proc entry is missing
|
||||||
QCOMPARE( getUrandomPoolSize(), 512 );
|
QCOMPARE( getUrandomPoolSize(), 512 );
|
||||||
#else
|
#else
|
||||||
// Based on a sample size of 1, Netrunner
|
// Based on a sample size of 1, Netrunner had 4096.
|
||||||
|
// Physical HW KDE neon had 256, which gets reported as 512,
|
||||||
|
// but regular CI builds pass, so leave that special case
|
||||||
|
// #if-fed out.
|
||||||
|
#if 0
|
||||||
|
KOSRelease r;
|
||||||
|
if ( r.id() == QStringLiteral( "neon" ) )
|
||||||
|
{
|
||||||
|
QCOMPARE( getUrandomPoolSize(), 512 );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
#endif
|
||||||
|
{
|
||||||
QCOMPARE( getUrandomPoolSize(), 4096 );
|
QCOMPARE( getUrandomPoolSize(), 4096 );
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user