Bug 1215730 - Disable leak checking for screentopng in ASan builds. r=ted
authorAndrew McCreight <continuation@gmail.com>
Wed, 21 Oct 2015 10:58:00 -0400
changeset 304072 af6ad83d570f4ddb0cbcea48f3aa2899af6b3034
parent 304071 dc02ecb027a7caef1da499dcb751e32309da6490
child 304073 f81fb04f11896ac09c485a3f5fbbf5c0aee9cfce
push id1001
push userraliiev@mozilla.com
push dateMon, 18 Jan 2016 19:06:03 +0000
treeherdermozilla-release@8b89261f3ac4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs1215730
milestone44.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1215730 - Disable leak checking for screentopng in ASan builds. r=ted
testing/tools/screenshot/gdk-screenshot.cpp
--- a/testing/tools/screenshot/gdk-screenshot.cpp
+++ b/testing/tools/screenshot/gdk-screenshot.cpp
@@ -154,8 +154,16 @@ int main(int argc, char** argv)
   if (error) {
     fprintf(stderr, "%s: failed to write screenshot as png: %s\n",
             argv[0], error->message);
     return error->code;
   }
 
   return 0;
 }
+
+// These options are copied from mozglue/build/AsanOptions.cpp
+#ifdef MOZ_ASAN
+extern "C"
+const char* __asan_default_options() {
+  return "allow_user_segv_handler=1:alloc_dealloc_mismatch=0:detect_leaks=0";
+}
+#endif