diff options
author | Dominik Schmidt <dev@dominik-schmidt.de> | 2020-12-14 16:47:45 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2020-12-17 12:30:20 +0300 |
commit | 25ed9e8ac76499631b2e95d5fca013aa1a5e8a9e (patch) | |
tree | 848f79008f185b6db0019f6001423863fe867ccc | |
parent | 9f4f516c577abc6b949b365c610e7a3f1e61607e (diff) |
Fix style
-rw-r--r-- | test/testutility.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/testutility.cpp b/test/testutility.cpp index 2e6c07dbe..449c9a415 100644 --- a/test/testutility.cpp +++ b/test/testutility.cpp @@ -109,22 +109,22 @@ private slots: void testVersionOfInstalledBinary() { - if( isLinux() ) { - if ( qgetenv("DISPLAY").isEmpty() ) { + if(isLinux()) { + if (qgetenv("DISPLAY").isEmpty()) { // Current requires an X-Server return; } // pass the binary name owncloud to the next call. This brakes branding, // but branding is not supposed to work with this. QString ver = versionOfInstalledBinary(OWNCLOUD_BIN_PATH+QLatin1String("/owncloud")); - qDebug() << "Version of installed ownCloud Binary: " << ver; - QVERIFY( !ver.isEmpty()); - - QRegExp rx( "ownCloud version \\d+\\.\\d+\\.\\d+.*" ); - QVERIFY( rx.exactMatch(ver)); - } else { - QVERIFY( versionOfInstalledBinary().isEmpty()); - } + qDebug() << "Version of installed ownCloud Binary: " << ver; + QVERIFY(!ver.isEmpty()); + + QRegExp rx("ownCloud version \\d+\\.\\d+\\.\\d+.*"); + QVERIFY(rx.exactMatch(ver)); + } else { + QVERIFY(versionOfInstalledBinary().isEmpty()); + } } void testTimeAgo() |