Repository navigation
Commit 0c4851b
Fix FileNotFoundException in NativeAOT test (#132173)
- [x] Diagnose: `Runtime_101046.csproj` and `Runtime_101046.ilproj`
shared the same project name, so they shared
`OutputPath`/`IntermediateOutputPath` and the generated `.cmd`/`.sh`
wrapper and overwrote each other's outputs. After #131110 added a
`TestLibrary` `ProjectReference` +
`[ActiveIssue(typeof(PlatformDetection), ...)]` to the C# variant only,
NativeAOT builds could ILC-compile the C# assembly without `TestLibrary`
in its reference set, so `__GeneratedMainWrapper.Main()` became a
throwing body (`FileNotFoundException: Could not find file
'TestLibrary'`).
- [x] Rename the C# variant to `Runtime_101046_1` (project, source file,
test class) so the two tests no longer share output/intermediate
directories
- [x] Replace the `TestLibrary`-based `ActiveIssue` gate with the
`CLRTestTargetUnsupported` project gate used by sibling native-asset
tests
- [x] Apply the same native-test-asset gate to the IL variant, which now
actually runs
- [x] Gate the IL variant off x64 Unix: once it really runs it fails
there (JIT passes the un-normalized `uint16`, the clang-built callee
assumes normalization) — needs a JIT-team decision, noted for follow-up
- [x] Validate: built `clr+libs` and the test tree, ran both wrappers on
linux-x64 (`Runtime_101046_1` passes; IL variant excluded on x64 Unix)
<!-- START COPILOT CODING AGENT SUFFIX -->
- Fixes #131997
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: AndyAyersMS <[email protected]>1 parent 1b245d5 commit 0c4851b
3 files changed
Lines changed: 9 additions & 5 deletions
File tree
- src/tests/JIT/Regression/JitBlue/Runtime_101046
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
7 | 12 | | |
8 | 13 | | |
9 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | | - | |
| 11 | + | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
16 | | - | |
17 | 15 | | |
18 | 16 | | |
19 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
11 | | - | |
12 | 13 | | |
13 | | - | |
| 14 | + | |
0 commit comments