mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-13 05:45:49 +00:00
add last sources test for playersource
This commit is contained in:
@ -40,16 +40,18 @@ void TestProcessesSource::test_sources()
|
||||
{
|
||||
QCOMPARE(source->sources().count(), 3);
|
||||
// FIXME there is segfault here sometimes o_0
|
||||
// QVERIFY(std::all_of(
|
||||
// source->sources().cbegin(), source->sources().cend(),
|
||||
// [](const QString &src) { return src.startsWith(QString("ps/")); }));
|
||||
// QVERIFY(std::all_of(
|
||||
// source->sources().cbegin(), source->sources().cend(),
|
||||
// [](const QString &src) { return src.startsWith(QString("ps/"));
|
||||
// }));
|
||||
}
|
||||
|
||||
|
||||
void TestProcessesSource::test_values()
|
||||
{
|
||||
QVERIFY(source->data(QString("ps/running/count")).toInt() > 0);
|
||||
QVERIFY(source->data(QString("ps/running/list")).toStringList().count() > 0);
|
||||
QVERIFY(source->data(QString("ps/running/list")).toStringList().count()
|
||||
> 0);
|
||||
QVERIFY(source->data(QString("ps/total/count")).toInt() > 0);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user