From 0e298c61e78dbed108a3a57c48d18d2762467431 Mon Sep 17 00:00:00 2001 From: Behzad Motaghi Date: Tue, 24 Nov 2026 01:50:52 +0100 Subject: [PATCH] test(server): run the empty-PATH launcher cases only on POSIX hosts repointLaunchers accepts a working-directory t3 only if its execute bits are set, which Windows hosts do not do, so the leading and trailing empty-entry cases would fail on a Windows run. They now run on POSIX hosts only; the entirely empty PATH case still runs everywhere. --- apps/server/src/cloud/serviceLauncherClient.test.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/apps/server/src/cloud/serviceLauncherClient.test.ts b/apps/server/src/cloud/serviceLauncherClient.test.ts index 8c52725dd8a3c..1a98b7b2703f5 100644 --- a/apps/server/src/cloud/serviceLauncherClient.test.ts +++ b/apps/server/src/cloud/serviceLauncherClient.test.ts @@ -359,8 +359,13 @@ it.layer(NodeServices.layer)("self-update launchers", (it) => { ); it.effect.each([ - { name: "leading", searchPath: (missing: string) => `:${missing}`, moved: true }, - { name: "trailing", searchPath: (missing: string) => `${missing}:`, moved: true }, + // The working-directory t3 is checked by its execute bits, which Windows hosts do not set. + ...(HostProcess.Platform.defaultValue() === "win32" + ? [] + : [ + { name: "leading", searchPath: (missing: string) => `:${missing}`, moved: true }, + { name: "trailing", searchPath: (missing: string) => `${missing}:`, moved: true }, + ]), { name: "whole", searchPath: () => "", moved: false }, ])("treats a $name empty PATH entry like the shell does", ({ searchPath, moved }) => Effect.gen(function* () {