зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset d39ba5b549c5 (bug 1165061) for LSAN leaks. a=me
This commit is contained in:
Родитель
b4dc8a79b7
Коммит
bedb1caf76
|
@ -18,6 +18,8 @@ support-files =
|
||||||
[test_0015_check_incompat_basic_addons.xul]
|
[test_0015_check_incompat_basic_addons.xul]
|
||||||
[test_0016_check_incompat_basic_license_addons.xul]
|
[test_0016_check_incompat_basic_license_addons.xul]
|
||||||
[test_0017_check_staging_basic.xul]
|
[test_0017_check_staging_basic.xul]
|
||||||
|
skip-if = os != 'win'
|
||||||
|
reason = Bug 918029 and bug 1164560 - timeout caused by copying too many files.
|
||||||
[test_0021_check_billboard.xul]
|
[test_0021_check_billboard.xul]
|
||||||
[test_0022_check_billboard_license.xul]
|
[test_0022_check_billboard_license.xul]
|
||||||
[test_0023_check_incompat_billboard.xul]
|
[test_0023_check_incompat_billboard.xul]
|
||||||
|
@ -59,10 +61,10 @@ support-files =
|
||||||
[test_0095_restartNotification_remoteInvalidNumber.xul]
|
[test_0095_restartNotification_remoteInvalidNumber.xul]
|
||||||
[test_0096_restartNotification_stagedBackground.xul]
|
[test_0096_restartNotification_stagedBackground.xul]
|
||||||
[test_0097_restartNotification_stagedServiceBackground.xul]
|
[test_0097_restartNotification_stagedServiceBackground.xul]
|
||||||
skip-if = os != 'win'
|
|
||||||
reason = only Windows has the maintenance service.
|
|
||||||
[test_0101_background_restartNotification.xul]
|
[test_0101_background_restartNotification.xul]
|
||||||
[test_0102_background_restartNotification_staging.xul]
|
[test_0102_background_restartNotification_staging.xul]
|
||||||
|
skip-if = os == 'linux'
|
||||||
|
reason = Bug 918029 - timeout caused by copying too many files.
|
||||||
[test_0103_background_restartNotification_stagingService.xul]
|
[test_0103_background_restartNotification_stagingService.xul]
|
||||||
skip-if = os != 'win'
|
skip-if = os != 'win'
|
||||||
reason = only Windows has the maintenance service.
|
reason = only Windows has the maintenance service.
|
||||||
|
|
|
@ -330,7 +330,6 @@ function runTestDefaultWaitForWindowClosed() {
|
||||||
|
|
||||||
setupFiles();
|
setupFiles();
|
||||||
setupPrefs();
|
setupPrefs();
|
||||||
gEnv.set("MOZ_TEST_SKIP_UPDATE_STAGE", "1");
|
|
||||||
removeUpdateDirsAndFiles();
|
removeUpdateDirsAndFiles();
|
||||||
reloadUpdateManagerData();
|
reloadUpdateManagerData();
|
||||||
setupAddons(runTest);
|
setupAddons(runTest);
|
||||||
|
@ -359,7 +358,6 @@ function finishTestDefault() {
|
||||||
verifyTestsRan();
|
verifyTestsRan();
|
||||||
|
|
||||||
resetPrefs();
|
resetPrefs();
|
||||||
gEnv.set("MOZ_TEST_SKIP_UPDATE_STAGE", "");
|
|
||||||
resetFiles();
|
resetFiles();
|
||||||
removeUpdateDirsAndFiles();
|
removeUpdateDirsAndFiles();
|
||||||
reloadUpdateManagerData();
|
reloadUpdateManagerData();
|
||||||
|
|
|
@ -130,10 +130,6 @@ XPCOMUtils.defineLazyGetter(this, "gPrefRoot", function test_gPR() {
|
||||||
return Services.prefs.getBranch(null);
|
return Services.prefs.getBranch(null);
|
||||||
});
|
});
|
||||||
|
|
||||||
XPCOMUtils.defineLazyServiceGetter(this, "gEnv",
|
|
||||||
"@mozilla.org/process/environment;1",
|
|
||||||
"nsIEnvironment");
|
|
||||||
|
|
||||||
XPCOMUtils.defineLazyGetter(this, "gZipW", function test_gZipW() {
|
XPCOMUtils.defineLazyGetter(this, "gZipW", function test_gZipW() {
|
||||||
return Cc["@mozilla.org/zipwriter;1"].
|
return Cc["@mozilla.org/zipwriter;1"].
|
||||||
createInstance(Ci.nsIZipWriter);
|
createInstance(Ci.nsIZipWriter);
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
// These are generated at compile time based on the DER file for the channel
|
// These are generated at compile time based on the DER file for the channel
|
||||||
// being used
|
// being used
|
||||||
#ifdef MOZ_VERIFY_MAR_SIGNATURE
|
#ifdef MOZ_VERIFY_MAR_SIGNATURE
|
||||||
#ifdef TEST_UPDATER
|
#ifdef UPDATER_XPCSHELL_CERT
|
||||||
#include "../xpcshellCert.h"
|
#include "../xpcshellCert.h"
|
||||||
#else
|
#else
|
||||||
#include "primaryCert.h"
|
#include "primaryCert.h"
|
||||||
|
@ -85,7 +85,7 @@ ArchiveReader::VerifySignature()
|
||||||
#ifndef MOZ_VERIFY_MAR_SIGNATURE
|
#ifndef MOZ_VERIFY_MAR_SIGNATURE
|
||||||
return OK;
|
return OK;
|
||||||
#else
|
#else
|
||||||
#ifdef TEST_UPDATER
|
#ifdef UPDATER_XPCSHELL_CERT
|
||||||
int rv = VerifyLoadedCert(mArchive, xpcshellCertData);
|
int rv = VerifyLoadedCert(mArchive, xpcshellCertData);
|
||||||
#else
|
#else
|
||||||
int rv = VerifyLoadedCert(mArchive, primaryCertData);
|
int rv = VerifyLoadedCert(mArchive, primaryCertData);
|
||||||
|
|
|
@ -8,6 +8,6 @@ Program('updater-xpcshell')
|
||||||
|
|
||||||
updater_rel_path = '../'
|
updater_rel_path = '../'
|
||||||
DIST_INSTALL = False
|
DIST_INSTALL = False
|
||||||
DEFINES['TEST_UPDATER'] = True
|
DEFINES['UPDATER_XPCSHELL_CERT'] = True
|
||||||
include('../updater-common.build')
|
include('../updater-common.build')
|
||||||
FAIL_ON_WARNINGS = True
|
FAIL_ON_WARNINGS = True
|
||||||
|
|
|
@ -2260,18 +2260,7 @@ UpdateThreadFunc(void *param)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (rv == OK && sStagedUpdate && !sIsOSUpdate) {
|
if (rv == OK && sStagedUpdate && !sIsOSUpdate) {
|
||||||
#ifdef TEST_UPDATER
|
|
||||||
// The MOZ_TEST_SKIP_UPDATE_STAGE environment variable prevents copying
|
|
||||||
// the files in dist/bin in the test updater when staging an update since
|
|
||||||
// this can cause tests to timeout.
|
|
||||||
if (getenv("MOZ_TEST_SKIP_UPDATE_STAGE")) {
|
|
||||||
rv = OK;
|
|
||||||
} else {
|
|
||||||
rv = CopyInstallDirToDestDir();
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
rv = CopyInstallDirToDestDir();
|
rv = CopyInstallDirToDestDir();
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rv == OK) {
|
if (rv == OK) {
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
// Microsoft Visual C++ generated resource script.
|
// Microsoft Visual C++ generated resource script.
|
||||||
//
|
//
|
||||||
#ifdef TEST_UPDATER
|
#ifdef UPDATER_XPCSHELL_CERT
|
||||||
#include "../resource.h"
|
#include "../resource.h"
|
||||||
#define MANIFEST_PATH "../updater.exe.manifest"
|
#define MANIFEST_PATH "../updater.exe.manifest"
|
||||||
#define COMCTL32_MANIFEST_PATH "../updater.exe.comctl32.manifest"
|
#define COMCTL32_MANIFEST_PATH "../updater.exe.comctl32.manifest"
|
||||||
|
|
Загрузка…
Ссылка в новой задаче