Skip to content

Commit eb78338

Browse files
committed
test: skip memory usage tests when ASAN is enabled
Running tests with an ASAN build leads to increased memory usage, rendering the memory usage assumptions in the test invalid. Refs: nodejs#32776 (comment)
1 parent 563efb7 commit eb78338

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

test/parallel/test-crypto-dh-leak.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
const common = require('../common');
55
if (!common.hasCrypto)
66
common.skip('missing crypto');
7+
if (process.config.variables.asan)
8+
common.skip('ASAN messes with memory measurements');
79

810
const assert = require('assert');
911
const crypto = require('crypto');

test/sequential/test-net-bytes-per-incoming-chunk-overhead.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
'use strict';
33

44
const common = require('../common');
5+
if (process.config.variables.asan)
6+
common.skip('ASAN messes with memory measurements');
7+
58
const assert = require('assert');
69
const net = require('net');
710

0 commit comments

Comments
 (0)