Possible fix for Bug 814535 and Bug 774014 - Intermittent test_0201_app_launch_apply_update* and test_0203_app_launch_apply_update* | launch application timer expired. r=bbondy

This commit is contained in:
Robert Strong 2013-01-12 23:30:11 -08:00
Родитель c78c56e1d2
Коммит f8b732fb99
7 изменённых файлов: 5 добавлений и 18 удалений

Просмотреть файл

@ -23,7 +23,7 @@ const MAX_TIMEOUT_RUNS = 300;
// Maximum number of milliseconds the process that is launched can run before // Maximum number of milliseconds the process that is launched can run before
// the test will try to kill it. // the test will try to kill it.
const APP_TIMER_TIMEOUT = 15000; const APP_TIMER_TIMEOUT = 20000;
let gAppTimer; let gAppTimer;
let gProcess; let gProcess;

Просмотреть файл

@ -26,7 +26,7 @@ const MAX_TIMEOUT_RUNS = 300;
// Maximum number of milliseconds the process that is launched can run before // Maximum number of milliseconds the process that is launched can run before
// the test will try to kill it. // the test will try to kill it.
const APP_TIMER_TIMEOUT = 15000; const APP_TIMER_TIMEOUT = 20000;
let gAppTimer; let gAppTimer;
let gProcess; let gProcess;

Просмотреть файл

@ -27,12 +27,6 @@ const FILE_UPDATER_INI_BAK = "updater.ini.bak";
// Number of milliseconds for each do_timeout call. // Number of milliseconds for each do_timeout call.
const CHECK_TIMEOUT_MILLI = 1000; const CHECK_TIMEOUT_MILLI = 1000;
// Maximum number of milliseconds the process that is launched can run before
// the test will try to kill it.
const APP_TIMER_TIMEOUT = 15000;
let gAppTimer;
let gProcess;
let gActiveUpdate; let gActiveUpdate;
// Override getUpdatesRootDir on Mac because we need to apply the update // Override getUpdatesRootDir on Mac because we need to apply the update

Просмотреть файл

@ -27,11 +27,12 @@ const FILE_UPDATER_INI_BAK = "updater.ini.bak";
// Number of milliseconds for each do_timeout call. // Number of milliseconds for each do_timeout call.
const CHECK_TIMEOUT_MILLI = 1000; const CHECK_TIMEOUT_MILLI = 1000;
// How many of CHECK_TIMEOUT_MILLI to wait before we abort the test.
const MAX_TIMEOUT_RUNS = 300; const MAX_TIMEOUT_RUNS = 300;
// Maximum number of milliseconds the process that is launched can run before // Maximum number of milliseconds the process that is launched can run before
// the test will try to kill it. // the test will try to kill it.
const APP_TIMER_TIMEOUT = 15000; const APP_TIMER_TIMEOUT = 20000;
Components.utils.import("resource://gre/modules/ctypes.jsm"); Components.utils.import("resource://gre/modules/ctypes.jsm");

Просмотреть файл

@ -21,10 +21,6 @@ const CHECK_TIMEOUT_MILLI = 1000;
// How many of CHECK_TIMEOUT_MILLI to wait before we abort the test. // How many of CHECK_TIMEOUT_MILLI to wait before we abort the test.
const MAX_TIMEOUT_RUNS = 300; const MAX_TIMEOUT_RUNS = 300;
// Maximum number of milliseconds the process that is launched can run before
// the test will try to kill it.
const APP_TIMER_TIMEOUT = 15000;
let gTimeoutRuns = 0; let gTimeoutRuns = 0;
function run_test() { function run_test() {

Просмотреть файл

@ -26,7 +26,7 @@ const MAX_TIMEOUT_RUNS = 300;
// Maximum number of milliseconds the process that is launched can run before // Maximum number of milliseconds the process that is launched can run before
// the test will try to kill it. // the test will try to kill it.
const APP_TIMER_TIMEOUT = 15000; const APP_TIMER_TIMEOUT = 20000;
let gAppTimer; let gAppTimer;
let gProcess; let gProcess;

Просмотреть файл

@ -30,10 +30,6 @@ const CHECK_TIMEOUT_MILLI = 1000;
// How many of CHECK_TIMEOUT_MILLI to wait before we abort the test. // How many of CHECK_TIMEOUT_MILLI to wait before we abort the test.
const MAX_TIMEOUT_RUNS = 300; const MAX_TIMEOUT_RUNS = 300;
// Maximum number of milliseconds the process that is launched can run before
// the test will try to kill it.
const APP_TIMER_TIMEOUT = 15000;
let gActiveUpdate; let gActiveUpdate;
let gTimeoutRuns = 0; let gTimeoutRuns = 0;