From 213ae4f4c6ce8bc5907c9c1c6a6eaec59391aaa5 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Mon, 5 Apr 2021 23:05:49 -0700 Subject: [PATCH] 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 --- test/pummel/test-vm-memleak.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/pummel/test-vm-memleak.js b/test/pummel/test-vm-memleak.js index 22aa9f3ead54f6..419b4171d226e9 100644 --- a/test/pummel/test-vm-memleak.js +++ b/test/pummel/test-vm-memleak.js @@ -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');