MCPcopy Create free account
hub / github.com/Martchus/syncthingtray / handleFinished

Method handleFinished

testhelper/syncthingtestinstance.cpp:178–184  ·  view source on GitHub ↗

! * \brief Throws an exception to abort testing when the process exists unexpectedly. */

Source from the content-addressed store, hash-verified

176 * \brief Throws an exception to abort testing when the process exists unexpectedly.
177 */
178void 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected