test: skip test-vm-memleak in ASAN

ASAN increases memory usage, which in turn messes up the memory leak
test. Skip the test on ASAN.

PR-URL: https://github.com/nodejs/node/pull/34289
Reviewed-By: Richard Lau <rlau@redhat.com>
This commit is contained in:
Rich Trott 2021-04-05 23:05:49 -07:00
parent 50208915a0
commit 213ae4f4c6

View File

@ -22,7 +22,12 @@
'use strict';
// Flags: --max_old_space_size=32 --expose_gc
require('../common');
const common = require('../common');
if (process.config.variables.asan) {
common.skip('ASAN messes with memory measurements');
}
const assert = require('assert');
const vm = require('vm');