machineid: document flaky test
This commit is contained in:
parent
aaa82386d8
commit
a649b67880
@ -19,6 +19,8 @@
|
||||
#include <QFile>
|
||||
#include <QtTest/QtTest>
|
||||
|
||||
#include <KOSRelease>
|
||||
|
||||
// Internals of Workers.cpp
|
||||
extern int getUrandomPoolSize();
|
||||
|
||||
@ -148,8 +150,21 @@ MachineIdTests::testPoolSize()
|
||||
// It hardly makes sense, but also the /proc entry is missing
|
||||
QCOMPARE( getUrandomPoolSize(), 512 );
|
||||
#else
|
||||
// Based on a sample size of 1, Netrunner
|
||||
QCOMPARE( getUrandomPoolSize(), 4096 );
|
||||
// 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 );
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user