test: enable locale test for asan build (#28085)

This commit is contained in:
Cheng Zhao 2021-03-11 03:04:57 +09:00 committed by GitHub
parent 73d0a16ae2
commit 32ec7e1e21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -338,8 +338,7 @@ describe('command line switches', () => {
// The LC_ALL env should not be set to DOM locale string.
expect(lcAll).to.not.equal(app.getLocale());
});
// TODO(jeremy): figure out why this times out under ASan
ifit(process.platform === 'linux' && !process.env.IS_ASAN)('should not change LC_ALL', async () => testLocale('fr', lcAll, true));
ifit(process.platform === 'linux')('should not change LC_ALL', async () => testLocale('fr', lcAll, true));
ifit(process.platform === 'linux')('should not change LC_ALL when setting invalid locale', async () => testLocale('asdfkl', lcAll, true));
ifit(process.platform === 'linux')('should not change LC_ALL when --lang is not set', async () => testLocale('', lcAll, true));
});