From 13767a4675f28550e3720c46c5a16349b95283a9 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 927e972e9d89cd..363cea8f65fb14 100644 --- a/test/parallel/parallel.status +++ b/test/parallel/parallel.status @@ -16,7 +16,6 @@ test-fs-rmdir-recursive: 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)); }));