Bug 1475335: Restrict TestInjectEject gtests to nightly builds;r?aklotz draft
authorCarl Corcoran <ccorcoran@mozilla.com>
Fri, 13 Jul 2018 16:59:52 +0200
changeset 817852 689b64ae49d2696f72a1d6112b936a8e76622dc6
parent 817669 e951f4ad123aa87d1d392c286db14cabb41a8560
push id116186
push userbmo:ccorcoran@mozilla.com
push dateFri, 13 Jul 2018 15:00:44 +0000
reviewersaklotz
bugs1475335
milestone63.0a1
Bug 1475335: Restrict TestInjectEject gtests to nightly builds;r?aklotz MozReview-Commit-ID: 4zzm7DN5mBm
mozglue/tests/gtest/TestDLLEject.cpp
--- a/mozglue/tests/gtest/TestDLLEject.cpp
+++ b/mozglue/tests/gtest/TestDLLEject.cpp
@@ -221,16 +221,17 @@ DoTest_CreateRemoteThread_LoadLibrary(Tg
   // If the DLL was erroneously loaded, attempt to unload it before exiting.
   if (hExisting) {
     FreeLibrary(hExisting);
   }
 
   return;
 }
 
+#if defined(NIGHTLY_BUILD)
 TEST(TestInjectEject, CreateRemoteThread_LoadLibraryA)
 {
   DoTest_CreateRemoteThread_LoadLibrary([](const nsString& dllPath,
                                            const nsCString& dllPathC,
                                            uintptr_t& aStartAddress,
                                            uintptr_t& aThreadParam){
     HMODULE hKernel32 = GetModuleHandleW(L"Kernel32");
     aStartAddress = (uintptr_t)GetProcAddress(hKernel32, "LoadLibraryA");
@@ -270,8 +271,9 @@ TEST(TestInjectEject, CreateRemoteThread
                                            const nsCString& dllPathC,
                                            uintptr_t& aStartAddress,
                                            uintptr_t& aThreadParam){
     HMODULE hKernel32 = GetModuleHandleW(L"Kernel32");
     aStartAddress = (uintptr_t)GetProcAddress(hKernel32, "LoadLibraryExA");
     aThreadParam = (uintptr_t)dllPathC.get();
   });
 }
+#endif //  defined(NIGHTLY_BUILD)