Skip to content

Commit cf874a8

Browse files
committed
fixup! skip strace check on asan builds
1 parent 1216270 commit cf874a8

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

.github/workflows/test-asan.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
CXX: clang++
4646
LINK: clang++
4747
CONFIG_FLAGS: --enable-asan
48+
ASAN: true
4849
steps:
4950
- uses: actions/checkout@v3
5051
with:

test/common/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ const isFreeBSD = process.platform === 'freebsd';
120120
const isOpenBSD = process.platform === 'openbsd';
121121
const isLinux = process.platform === 'linux';
122122
const isOSX = process.platform === 'darwin';
123+
const isAsan = process.env.ASAN !== undefined;
123124
const isPi = (() => {
124125
try {
125126
// Normal Raspberry Pi detection is to find the `Raspberry Pi` string in
@@ -900,6 +901,7 @@ const common = {
900901
invalidArgTypeHelper,
901902
isAIX,
902903
isAlive,
904+
isAsan,
903905
isDumbTerminal,
904906
isFreeBSD,
905907
isLinux,

test/parallel/test-strace-openat-openssl.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ if (!common.hasCrypto)
99
common.skip('missing crypto');
1010
if (!common.isLinux)
1111
common.skip('linux only');
12+
if (common.isAsan)
13+
common.skip('strace does not work well with address sanitizer builds');
1214
if (spawnSync('strace').error !== undefined) {
1315
common.skip('missing strace');
1416
}

0 commit comments

Comments
 (0)