Commit 1effea1
Fix TestIndexWriterOnJRECrash fork on ARM64 hosts
GetTargetPlatform() returned "x64" on any 64-bit process, which on Apple
Silicon (and other ARM64 hosts) caused the forked vstest to abort with
"Could not find 'dotnet' host for the 'X64' architecture". The fork
never connected back to the parent's TCP listener, so the parent blocked
forever in WaitForProcessId until the assembly Timeout fired.
Detect the architecture via RuntimeInformation.ProcessArchitecture so
the fork runs in the same architecture as the parent.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent cf5910b commit 1effea1
1 file changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
242 | 243 | | |
243 | 244 | | |
244 | 245 | | |
245 | | - | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
246 | 259 | | |
247 | 260 | | |
248 | 261 | | |
| |||
0 commit comments