test: run tests under asan on linux-x64 (#23570)

This commit is contained in:
Jeremy Rose 2021-02-22 16:16:17 -08:00 committed by GitHub
parent b181dae146
commit 7f8e34fa3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 112 additions and 50 deletions

View file

@ -209,7 +209,8 @@ describe('app module', () => {
});
});
describe('app.requestSingleInstanceLock', () => {
// TODO(jeremy): figure out why these tests time out under ASan
ifdescribe(!process.env.IS_ASAN)('app.requestSingleInstanceLock', () => {
it('prevents the second launch of app', async function () {
this.timeout(120000);
const appPath = path.join(fixturesPath, 'api', 'singleton');
@ -1454,7 +1455,8 @@ describe('app module', () => {
});
describe('when app.enableSandbox() is called', () => {
it('adds --enable-sandbox to all renderer processes', done => {
// TODO(jeremy): figure out why this times out under ASan
ifit(!process.env.IS_ASAN)('adds --enable-sandbox to all renderer processes', done => {
const appPath = path.join(fixturesPath, 'api', 'mixed-sandbox-app');
appProcess = cp.spawn(process.execPath, [appPath, '--app-enable-sandbox']);
@ -1479,7 +1481,8 @@ describe('app module', () => {
});
describe('when the app is launched with --enable-sandbox', () => {
it('adds --enable-sandbox to all renderer processes', done => {
// TODO(jeremy): figure out why this times out under ASan
ifit(!process.env.IS_ASAN)('adds --enable-sandbox to all renderer processes', done => {
const appPath = path.join(fixturesPath, 'api', 'mixed-sandbox-app');
appProcess = cp.spawn(process.execPath, [appPath, '--enable-sandbox']);