OSDN Git Service

[users] Repair test on openSUSE
authorAdriaan de Groot <groot@kde.org>
Tue, 11 Aug 2020 20:16:03 +0000 (22:16 +0200)
committerAdriaan de Groot <groot@kde.org>
Tue, 11 Aug 2020 20:16:03 +0000 (22:16 +0200)
src/modules/users/TestCreateUserJob.cpp

index 610f84e..93dc896 100644 (file)
@@ -63,7 +63,10 @@ CreateUserTests::testReadGroup()
 #else
     QVERIFY( groups.contains( QStringLiteral( "root" ) ) );
 #endif
-    QVERIFY( groups.contains( QStringLiteral( "sys" ) ) );
+    // openSUSE doesn't have "sys"
+    // QVERIFY( groups.contains( QStringLiteral( "sys" ) ) );
+    QVERIFY( groups.contains( QStringLiteral( "nogroup" ) ) );
+    QVERIFY( groups.contains( QStringLiteral( "tty" ) ) );
 
     for ( const QString& s : groups )
     {