Fix compiling tests when systemd support is disabled

This commit is contained in:
Martchus 2023-02-26 20:01:53 +01:00
parent ed28eb5a44
commit c153173545
1 changed files with 2 additions and 0 deletions

View File

@ -199,8 +199,10 @@ void WizardTests::testConfiguringLauncher()
if (setupDetection.launcherExitCode.has_value()) {
qDebug() << "launcher exit code: " << setupDetection.launcherExitCode.value();
}
#ifdef LIB_SYNCTHING_CONNECTOR_SUPPORT_SYSTEMD
qDebug() << "user service state: " << setupDetection.userService.unitFileState();
qDebug() << "system service state: " << setupDetection.systemService.unitFileState();
#endif
if (setupDetection.timedOut) {
qDebug() << "timeout of " << setupDetection.timeout.interval() << " ms has been exceeded (normal if systemd units not available)";
}