Do not upload minidumps when running unit tests or zone builder.

This commit is contained in:
/dev/urandom 2016-09-14 08:08:48 +02:00
parent e18ac7be16
commit 54f21d5a5d
No known key found for this signature in database
GPG Key ID: 41322B973E0F295E
2 changed files with 11 additions and 10 deletions

View File

@ -13,7 +13,7 @@ namespace Components
BitMessage::BitMessage()
{
#ifdef DEBUG
Logger::Print("Initializing BitMessage...\n");
Logger::Print("Initializing BitMessage...\n");
#endif // DEBUG

View File

@ -157,6 +157,7 @@ namespace Components
MinidumpUpload::MinidumpUpload()
{
#if !defined(DEBUG) || defined(FORCE_MINIDUMP_UPLOAD)
if (Loader::PerformingUnitTests() || ZoneBuilder::IsEnabled()) return;
this->uploadThread = std::thread([&]() { this->UploadQueuedMinidumps(); });
#endif
}