Bug 1022050 - Disable the SEH block used in TestPoisonArea.cpp on clang-cl until it grows SEH support; r=froydnj
authorEhsan Akhgari <ehsan@mozilla.com>
Fri, 06 Jun 2014 23:11:58 -0400
changeset 207673 a0b0886c3ed13c85b3d1daacbde121ba3aa252e9
parent 207672 47fcf180a0b99542403949b98460d805f94d08b2
child 207674 d7dc39d162348d21bd2b51b3a3b56fa2fe969dd5
push id494
push userraliiev@mozilla.com
push dateMon, 25 Aug 2014 18:42:16 +0000
treeherdermozilla-release@a3cc3e46b571 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1022050
milestone32.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 1022050 - Disable the SEH block used in TestPoisonArea.cpp on clang-cl until it grows SEH support; r=froydnj
mfbt/tests/TestPoisonArea.cpp
--- a/mfbt/tests/TestPoisonArea.cpp
+++ b/mfbt/tests/TestPoisonArea.cpp
@@ -395,24 +395,24 @@ JumpTo(uintptr_t opaddr)
 }
 
 #ifdef _WIN32
 static BOOL
 IsBadExecPtr(uintptr_t ptr)
 {
   BOOL ret = false;
 
-#ifdef _MSC_VER
+#if defined(_MSC_VER) && !defined(__clang__)
   __try {
     JumpTo(ptr);
   } __except (EXCEPTION_EXECUTE_HANDLER) {
     ret = true;
   }
 #else
-  printf("INFO | exec test not supported on MinGW build\n");
+  printf("INFO | exec test not supported on MinGW or clang-cl builds\n");
   // We do our best
   ret = IsBadReadPtr((const void*)ptr, 1);
 #endif
   return ret;
 }
 #endif
 
 /* Test each page.  */