Skip to content

Commit

Permalink
Bug 1402519 - Remove MOZ_CRASHREPORTER directives from testing; r=ted…
Browse files Browse the repository at this point in the history
….mielczarek

MozReview-Commit-ID: 3QJI8o9f9UW

--HG--
extra : rebase_source : 986fb3758f18c852abd0bc35005251c7ab9b8261
  • Loading branch information
gabrielesvelto committed Oct 10, 2017
1 parent cc490a2 commit c0bde07
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions testing/gtest/mozilla/GTestRunner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
#include "GTestRunner.h"
#include "gtest/gtest.h"
#include "mozilla/Attributes.h"
#ifdef MOZ_CRASHREPORTER
#include "nsICrashReporter.h"
#endif
#include "testing/TestHarness.h"
#include "prenv.h"
#ifdef XP_WIN
Expand Down Expand Up @@ -91,7 +89,6 @@ int RunGTestFunc(int* argc, char** argv)
#ifdef XP_WIN
mozilla::ipc::windows::InitUIThread();
#endif
#ifdef MOZ_CRASHREPORTER
nsCOMPtr<nsICrashReporter> crashreporter;
char *crashreporterStr = PR_GetEnv("MOZ_CRASHREPORTER");
if (crashreporterStr && !strcmp(crashreporterStr, "1")) {
Expand All @@ -112,7 +109,6 @@ int RunGTestFunc(int* argc, char** argv)
crashreporter->SetMinidumpPath(cwd);
}
}
#endif

return RUN_ALL_TESTS();
}
Expand Down

0 comments on commit c0bde07

Please sign in to comment.