Files
97055b043e Fix GCC dump temp-dir masking on Windows (#9124)
Follow-up to #9121, which broke the Windows unit tests on `main`
([run](https://github.com/compiler-explorer/compiler-explorer/actions/runs/34858174266)).

The temp-dir mask split on `rootDir + '/'`. On Windows `rootDir` comes
from `path.dirname` and has backslashes, so the split never matched, the
mask did nothing, and the new test failed with:

```
AssertionError: expected ';; Function main (main)\n(insn 2 4 3 …' to contain '"/app/example.cpp":3:5'
```

Linux was unaffected, which is why the PR's own CI was green.

Fix: split on `rootDir + path.sep`, and on Windows also on the
forward-slash spelling of the dir, since GCC there may print either. The
test now covers both spellings, with the forward-slash case built from
`path.sep` so it exercises the second branch only where it exists.

Nothing else changes: on Linux `path.sep` is `/`, so the behaviour is
identical to what shipped in #9121.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: mattgodbolt-molty <mattgodbolt-molty@users.noreply.github.com>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-14 09:27:19 -06:00
..
2026-07-14 08:46:10 +01:00
2021-10-05 01:45:05 +02:00
2019-08-21 01:26:16 +02:00
2025-01-29 10:41:03 -06:00
2021-09-13 20:22:27 +02:00
2024-10-26 17:42:22 +02:00
2024-03-08 22:25:09 -06:00
2024-03-08 22:25:09 -06:00
2024-03-08 22:25:09 -06:00
2026-02-08 12:50:20 +01:00
2024-03-08 22:25:09 -06:00