From ab286ac3fbd8d0a03e41618a8e82ce3e41d00e48 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Mon, 30 Sep 2024 00:46:42 +0200 Subject: [PATCH] fixup! skip tests that are hopeless --- test/parallel/test-snapshot-child-process-sync.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-snapshot-child-process-sync.js b/test/parallel/test-snapshot-child-process-sync.js index 0a273c0c719c7f..ac11ceae54d402 100644 --- a/test/parallel/test-snapshot-child-process-sync.js +++ b/test/parallel/test-snapshot-child-process-sync.js @@ -3,8 +3,8 @@ // This tests that process.cwd() is accurate when // restoring state from a snapshot -require('../common'); -const { isInsideDirWithUnusualChars, spawnSyncAndAssert } = require('../common/child_process'); +const { isInsideDirWithUnusualChars } = require('../common'); +const { spawnSyncAndAssert } = require('../common/child_process'); const tmpdir = require('../common/tmpdir'); const fixtures = require('../common/fixtures'); const assert = require('assert'); @@ -14,7 +14,7 @@ const blobPath = tmpdir.resolve('snapshot.blob'); const file = fixtures.path('snapshot', 'child-process-sync.js'); const expected = [ 'From child process spawnSync', - 'From child process execSync', + ...(isInsideDirWithUnusualChars ? [] : ['From child process execSync']), 'From child process execFileSync', ];