1diff --git a/test/parallel/test-macos-app-sandbox.js b/test/parallel/test-macos-app-sandbox.js
2index 60ad67b3db..b6ac0dcef4 100644
3--- a/test/parallel/test-macos-app-sandbox.js
4+++ b/test/parallel/test-macos-app-sandbox.js
5@@ -45,11 +45,11 @@ fs.copyFileSync(
6
7 // Sign the app bundle with sandbox entitlements:
8 assert.strictEqual(
9- child_process.spawnSync('/usr/bin/codesign', [
10+ child_process.spawnSync('@codesign@', [
11 '--entitlements', fixtures.path(
12 'macos-app-sandbox', 'node_sandboxed.entitlements'),
13 '--force', '-s', '-',
14- appBundlePath,
15+ appExecutablePath,
16 ]).status,
17 0);
18