diff options
author | Dominik Schmidt <dev@dominik-schmidt.de> | 2020-12-14 16:47:45 +0300 |
---|---|---|
committer | Kevin Ottens <kevin.ottens@nextcloud.com> | 2020-12-30 18:17:47 +0300 |
commit | 635d2b2da28336557b910d1bc6dbdf6a649c637b (patch) | |
tree | 60bad3e2440275aeb28b5b5c0f67aa8bbe99e6f8 /test | |
parent | 713a429675dad8ae8e6cddfa0737b1da8223b164 (diff) |
Fix style
Diffstat (limited to 'test')
-rw-r--r-- | test/testutility.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/test/testutility.cpp b/test/testutility.cpp index 38acb0ca2..aa21ed788 100644 --- a/test/testutility.cpp +++ b/test/testutility.cpp @@ -114,22 +114,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("/nextcloud")); - qDebug() << "Version of installed Nextcloud: " << ver; - QVERIFY( !ver.isEmpty()); - - QRegExp rx( R"(Nextcloud version \d+\.\d+\.\d+.*)" ); - QVERIFY( rx.exactMatch(ver)); - } else { - QVERIFY( versionOfInstalledBinary().isEmpty()); - } + QString ver = versionOfInstalledBinary(OWNCLOUD_BIN_PATH + QLatin1String("/nextcloud")); + qDebug() << "Version of installed Nextcloud: " << ver; + QVERIFY(!ver.isEmpty()); + + QRegExp rx(R"(Nextcloud version \d+\.\d+\.\d+.*)"); + QVERIFY(rx.exactMatch(ver)); + } else { + QVERIFY(versionOfInstalledBinary().isEmpty()); + } } void testTimeAgo() |