From 1e6fe563333ba56b8858574be2664c9ea8bf5666 Mon Sep 17 00:00:00 2001 From: Stefan Stojanovic Date: Mon, 27 Mar 2023 13:20:08 +0200 Subject: [PATCH] test: fix test-child-process-exec-cwd Refs: https://github.com/nodejs/node/pull/47020 Refs: https://github.com/nodejs/build/issues/3046 PR-URL: https://github.com/nodejs/node/pull/47235 Reviewed-By: Luigi Pinca Reviewed-By: Debadree Chatterjee --- test/parallel/parallel.status | 1 - test/parallel/test-child-process-exec-cwd.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/test/parallel/parallel.status b/test/parallel/parallel.status index 19dfc85953545f..7ec896b7b31047 100644 --- a/test/parallel/parallel.status +++ b/test/parallel/parallel.status @@ -19,7 +19,6 @@ test-child-process-stdio-reuse-readable-stdio: PASS, FLAKY # Windows on ARM [$system==win32 && $arch==arm64] -test-child-process-exec-cwd: SKIP [$system==linux] # https://github.com/nodejs/node/issues/39368 diff --git a/test/parallel/test-child-process-exec-cwd.js b/test/parallel/test-child-process-exec-cwd.js index 2f86cf10fe5e0f..49e56ef5511f8c 100644 --- a/test/parallel/test-child-process-exec-cwd.js +++ b/test/parallel/test-child-process-exec-cwd.js @@ -35,5 +35,5 @@ if (common.isWindows) { } exec(pwdcommand, { cwd: dir }, common.mustSucceed((stdout, stderr) => { - assert(stdout.startsWith(dir)); + assert(stdout.toLowerCase().startsWith(dir)); }));