From 5734e5747cf34771462ef72dcdb4404c5010f711 Mon Sep 17 00:00:00 2001 From: Malte Ubl Date: Fri, 23 Oct 2026 08:34:23 -0700 Subject: [PATCH] Keep two Node oracles of 992-fs-roundtrip apart The differential and LLVM differential suites can run the same corpus program at the same time in one shard. Their Node oracles had the same argv[1] and so the same scratch directory, and one removed it under the other. The directory name now includes the pid. Co-Authored-By: Claude Opus 5.5 --- tests/corpus/992-fs-roundtrip.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/corpus/992-fs-roundtrip.ts b/tests/corpus/992-fs-roundtrip.ts index a039c936f..6ac7398b4 100644 --- a/tests/corpus/992-fs-roundtrip.ts +++ b/tests/corpus/992-fs-roundtrip.ts @@ -2,7 +2,9 @@ // inside a scratch directory derived from THIS process's own identity: the // harness runs Node and the native binary CONCURRENTLY in one cwd, and // argv[1]'s trailing segment differs between the two (script name vs binary -// name), so the sides never touch the same paths. +// name), so the sides never touch the same paths. The pid keeps two Node +// oracles apart too: the differential and LLVM differential suites can run +// the same program at once in one shard. import { appendFileSync, existsSync, @@ -32,7 +34,7 @@ function freshDir(dir: string): void { } mkdirSync(dir); } -const scratch = "tmp-992-" + tail(process.argv[1]); +const scratch = "tmp-992-" + tail(process.argv[1]) + "-" + process.pid; freshDir(scratch); const file = scratch + "/notes.txt";