Disable the hang detector for bug 429592 while running the startup cache tests because they intentionally hang the browser to trigger the startup timeout. feedback=mwu on IRC

--HG--
extra : rebase_source : cede9fe3c3355bd84aec501c7ae12a54ebe3bacf
This commit is contained in:
Benjamin Smedberg 2011-11-04 15:13:40 -04:00
parent 8b8a2194c9
commit 0d5dc2e25a

View File

@ -51,6 +51,8 @@
#include "nsIObjectOutputStream.h"
#include "nsIURI.h"
#include "nsStringAPI.h"
#include "nsIPrefBranch.h"
#include "nsIPrefService.h"
namespace mozilla {
namespace scache {
@ -91,6 +93,7 @@ WaitForStartupTimer() {
bool complete;
while (true) {
NS_ProcessPendingEvents(nsnull);
rv = sc->StartupWriteComplete(&complete);
if (NS_FAILED(rv) || complete)
@ -319,6 +322,9 @@ int main(int argc, char** argv)
int rv = 0;
nsresult rv2;
ScopedXPCOM xpcom("Startup Cache");
nsCOMPtr<nsIPrefBranch> prefs = do_GetService(NS_PREFSERVICE_CONTRACTID);
prefs->SetIntPref("hangmonitor.timeout", 0);
if (NS_FAILED(TestStartupWriteRead()))
rv = 1;