Commit 127fe2d
Write ExpectedExitCode marker in GenerateMarkerFiles (#124582)
`GenerateMarkerFiles` did not emit the expected-exit-code marker, so
merged/standalone test payloads could miss `ExpectedExitCode.txt`. This
change adds marker generation directly in the existing marker pipeline.
- **Scope**
- Updates `src/tests/Directory.Build.targets` in `GenerateMarkerFiles`.
- **Behavior change**
- Adds a marker entry for
`$(IntermediateOutputPath)\ExpectedExitCode.txt`.
- Writes `$(ExpectedExitCode)` as file content.
- Applies only when:
- `$(ExpectedExitCode)` is set
- test is merged runner or standalone runner
- `$(CLRTestKind)` is not `SharedLibrary`
- **Implementation (minimal diff)**
```xml
<MarkerFile Include="$(IntermediateOutputPath)\ExpectedExitCode.txt"
Condition="'$(ExpectedExitCode)' != '' and
('$(IsMergedTestRunnerAssembly)' == 'true' or
'$(BuildAllTestsAsStandalone)' == 'true') and '$(CLRTestKind)' !=
'SharedLibrary'">
<Type>$(ExpectedExitCode)</Type>
</MarkerFile>
```
<!-- START COPILOT CODING AGENT TIPS -->
---
💡 You can make Copilot smarter by setting up custom instructions,
customizing its development environment and configuring Model Context
Protocol (MCP) servers. Learn more [Copilot coding agent
tips](https://gh.io/copilot-coding-agent-tips) in the docs.
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: sbomer <787361+sbomer@users.noreply.github.com>1 parent 44e21b7 commit 127fe2d
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
437 | 440 | | |
438 | 441 | | |
439 | 442 | | |
| |||
0 commit comments