Skip to content

Commit

Permalink
test: skip memory usage tests when ASAN is enabled
Browse files Browse the repository at this point in the history
Running tests with an ASAN build leads to increased memory usage,
rendering the memory usage assumptions in the test invalid.

Refs: nodejs#32776 (comment)
  • Loading branch information
addaleax committed Apr 28, 2020
1 parent 563efb7 commit eb78338
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/parallel/test-crypto-dh-leak.js
Expand Up @@ -4,6 +4,8 @@
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
if (process.config.variables.asan)
common.skip('ASAN messes with memory measurements');

const assert = require('assert');
const crypto = require('crypto');
Expand Down
3 changes: 3 additions & 0 deletions test/sequential/test-net-bytes-per-incoming-chunk-overhead.js
Expand Up @@ -2,6 +2,9 @@
'use strict';

const common = require('../common');
if (process.config.variables.asan)
common.skip('ASAN messes with memory measurements');

const assert = require('assert');
const net = require('net');

Expand Down

0 comments on commit eb78338

Please sign in to comment.