! * \brief Throws an exception to abort testing when the process exists unexpectedly. */
| 176 | * \brief Throws an exception to abort testing when the process exists unexpectedly. |
| 177 | */ |
| 178 | void SyncthingTestInstance::handleFinished(int exitCode, QProcess::ExitStatus exitStatus) |
| 179 | { |
| 180 | if (m_processSupposedToRun) { |
| 181 | throw std::runtime_error(argsToString("Syncthing exited unexpectedly ("sv, |
| 182 | exitStatus == QProcess::NormalExit ? "normal exit"sv : "exited with error"sv, ", exit code: "sv, exitCode, ')')); |
| 183 | } |
| 184 | } |
| 185 | |
| 186 | } // namespace CppUtilities |
nothing calls this directly
no outgoing calls
no test coverage detected