build: give ASAN tests more memory to avoid SIGKILL or disabling tests (#28567)
* build: give ASAN tests more memory * test: re-eanble asan tests Co-authored-by: Cheng Zhao <zcbenz@gmail.com>
This commit is contained in:
parent
f73d09374e
commit
17f527f757
7 changed files with 18 additions and 36 deletions
|
@ -143,8 +143,7 @@ describe('app module', () => {
|
|||
});
|
||||
});
|
||||
|
||||
// Running child app under ASan might receive SIGKILL because of OOM.
|
||||
ifdescribe(!process.env.IS_ASAN)('app.exit(exitCode)', () => {
|
||||
describe('app.exit(exitCode)', () => {
|
||||
let appProcess: cp.ChildProcess | null = null;
|
||||
|
||||
afterEach(() => {
|
||||
|
@ -210,8 +209,7 @@ describe('app module', () => {
|
|||
});
|
||||
});
|
||||
|
||||
// Running child app under ASan might receive SIGKILL because of OOM.
|
||||
ifdescribe(!process.env.IS_ASAN)('app.requestSingleInstanceLock', () => {
|
||||
describe('app.requestSingleInstanceLock', () => {
|
||||
it('prevents the second launch of app', async function () {
|
||||
this.timeout(120000);
|
||||
const appPath = path.join(fixturesPath, 'api', 'singleton');
|
||||
|
@ -253,8 +251,7 @@ describe('app module', () => {
|
|||
});
|
||||
});
|
||||
|
||||
// Running child app under ASan might receive SIGKILL because of OOM.
|
||||
ifdescribe(!process.env.IS_ASAN)('app.relaunch', () => {
|
||||
describe('app.relaunch', () => {
|
||||
let server: net.Server | null = null;
|
||||
const socketPath = process.platform === 'win32' ? '\\\\.\\pipe\\electron-app-relaunch' : '/tmp/electron-app-relaunch';
|
||||
|
||||
|
@ -854,8 +851,7 @@ describe('app module', () => {
|
|||
});
|
||||
});
|
||||
|
||||
// Running child app under ASan might receive SIGKILL because of OOM.
|
||||
ifdescribe(!process.env.IS_ASAN)('getAppPath', () => {
|
||||
describe('getAppPath', () => {
|
||||
it('works for directories with package.json', async () => {
|
||||
const { appPath } = await runTestApp('app-path');
|
||||
expect(appPath).to.equal(path.resolve(fixturesPath, 'api/app-path'));
|
||||
|
@ -1331,8 +1327,7 @@ describe('app module', () => {
|
|||
});
|
||||
});
|
||||
|
||||
// Running child app under ASan might receive SIGKILL because of OOM.
|
||||
ifdescribe(!process.env.IS_ASAN)('sandbox options', () => {
|
||||
describe('sandbox options', () => {
|
||||
let appProcess: cp.ChildProcess = null as any;
|
||||
let server: net.Server = null as any;
|
||||
const socketPath = process.platform === 'win32' ? '\\\\.\\pipe\\electron-mixed-sandbox' : '/tmp/electron-mixed-sandbox';
|
||||
|
@ -1557,8 +1552,7 @@ describe('app module', () => {
|
|||
});
|
||||
});
|
||||
|
||||
// Running child app under ASan might receive SIGKILL because of OOM.
|
||||
ifdescribe(!process.env.IS_ASAN)('commandLine.hasSwitch (existing argv)', () => {
|
||||
describe('commandLine.hasSwitch (existing argv)', () => {
|
||||
it('returns true when present', async () => {
|
||||
const { hasSwitch } = await runTestApp('command-line', '--foobar');
|
||||
expect(hasSwitch).to.equal(true);
|
||||
|
@ -1586,8 +1580,7 @@ describe('app module', () => {
|
|||
});
|
||||
});
|
||||
|
||||
// Running child app under ASan might receive SIGKILL because of OOM.
|
||||
ifdescribe(!process.env.IS_ASAN)('commandLine.getSwitchValue (existing argv)', () => {
|
||||
describe('commandLine.getSwitchValue (existing argv)', () => {
|
||||
it('returns the value when present', async () => {
|
||||
const { getSwitchValue } = await runTestApp('command-line', '--foobar=test');
|
||||
expect(getSwitchValue).to.equal('test');
|
||||
|
@ -1614,8 +1607,7 @@ describe('app module', () => {
|
|||
});
|
||||
});
|
||||
|
||||
// Running child app under ASan might receive SIGKILL because of OOM.
|
||||
ifdescribe(!process.env.IS_ASAN)('default behavior', () => {
|
||||
describe('default behavior', () => {
|
||||
describe('application menu', () => {
|
||||
it('creates the default menu if the app does not set it', async () => {
|
||||
const result = await runTestApp('default-menu');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue