Make the simple leaktest run first and give it ample time to make sure GC from previous tests does not cause debugger tests to fail (bug 774619); r=vporof
authorPanos Astithas <past@mozilla.com>
Thu, 13 Dec 2012 15:47:36 +0200
changeset 115933 ab30da702673f66409016bbd568b42ff7430bda1
parent 115932 25c589434eaee833c3c090e8a44a63140a2b1765
child 115934 fa72584497cbe20dfadaaf0018c7bd45de0f1ba8
push id24034
push useremorley@mozilla.com
push dateFri, 14 Dec 2012 15:28:57 +0000
treeherdermozilla-central@50d8f411d305 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvporof
bugs774619
milestone20.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
Make the simple leaktest run first and give it ample time to make sure GC from previous tests does not cause debugger tests to fail (bug 774619); r=vporof
browser/devtools/debugger/test/Makefile.in
browser/devtools/debugger/test/browser_dbg_aaa_run_first_leaktest.js
browser/devtools/debugger/test/browser_dbg_leaktest.js
--- a/browser/devtools/debugger/test/Makefile.in
+++ b/browser/devtools/debugger/test/Makefile.in
@@ -6,17 +6,17 @@ DEPTH           = @DEPTH@
 topsrcdir       = @top_srcdir@
 srcdir          = @srcdir@
 VPATH           = @srcdir@
 relativesrcdir  = @relativesrcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
 MOCHITEST_BROWSER_TESTS = \
-	browser_dbg_leaktest.js \
+	browser_dbg_aaa_run_first_leaktest.js \
 	browser_dbg_createChrome.js \
 	$(browser_dbg_debugger-tab-switch.js disabled until issues 106, 40 are fixed) \
 	$(browser_dbg_debugger-tab-switch-window.js disabled until issues 106, 40 are fixed) \
 	browser_dbg_debuggerstatement.js \
 	browser_dbg_listtabs.js \
 	browser_dbg_tabactor-01.js \
 	browser_dbg_tabactor-02.js \
 	browser_dbg_globalactor-01.js \
rename from browser/devtools/debugger/test/browser_dbg_leaktest.js
rename to browser/devtools/debugger/test/browser_dbg_aaa_run_first_leaktest.js
--- a/browser/devtools/debugger/test/browser_dbg_leaktest.js
+++ b/browser/devtools/debugger/test/browser_dbg_aaa_run_first_leaktest.js
@@ -15,16 +15,20 @@ let gDebugger = null;
 
 function test()
 {
   let scriptShown = false;
   let framesAdded = false;
   let resumed = false;
   let testStarted = false;
 
+  // Wait longer for this very simple test that comes first, to make sure that
+  // GC from previous tests does not interfere with the debugger suite.
+  requestLongerTimeout(2);
+
   debug_tab_pane(TAB_URL, function(aTab, aDebuggee, aPane) {
     gTab = aTab;
     gDebuggee = aDebuggee;
     gPane = aPane;
     gDebugger = gPane.panelWin;
     resumed = true;
 
     gDebugger.DebuggerController.activeThread.addOneTimeListener("framesadded", function() {