Skip to content

Commit cd0095e

Browse files
authored
test: add macos multi arch test (#113)
Ref #112
1 parent 717b963 commit cd0095e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/test-46-multi-arch/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ const utils = require('../utils.js');
88
assert(!module.parent);
99
assert(__dirname === process.cwd());
1010

11-
// only linux has linux-arm64 counterpart
12-
if (process.platform !== 'linux') return;
11+
// only linux adn macos has arm64 counterpart
12+
if (!['linux', 'darwin'].includes(process.platform)) return;
1313

14-
const opposite = { x64: 'arm64', arm: 'x64' };
14+
const opposite = { x64: 'arm64', arm64: 'x64' };
1515

1616
const target = opposite[process.arch];
1717
const input = './test-x-index.js';

0 commit comments

Comments
 (0)