[users] Test distinguishes system groups from user groups

This commit is contained in:
Adriaan de Groot 2020-10-13 23:00:12 +02:00
parent ff9abdfc08
commit 07027c2430

View File

@ -95,7 +95,7 @@ UserTests::testDefaultGroups()
QVERIFY( groups.isEmpty() );
setConfigurationDefaultGroups( missing, groups );
QCOMPARE( groups.count(), 6 ); // because of fallback!
QVERIFY( groups.contains( GroupDescription( "lp" ) ) );
QVERIFY( groups.contains( GroupDescription( "lp", false, GroupDescription::SystemGroup{} ) ) );
}
{
@ -105,7 +105,7 @@ UserTests::testDefaultGroups()
typeMismatch.insert( "defaultGroups", 1 );
setConfigurationDefaultGroups( typeMismatch, groups );
QCOMPARE( groups.count(), 6 ); // because of fallback!
QVERIFY( groups.contains( GroupDescription( "lp" ) ) );
QVERIFY( groups.contains( GroupDescription( "lp", false, GroupDescription::SystemGroup{} ) ) );
}
}