Skip to content

Fix interop annotations of a test helper - #86139

Merged
jjonescz merged 2 commits into
dotnet:mainfrom
jjonescz:86124-RuntimeHostInfoTestsSymlink
Oct 21, 2026
Merged

jjonescz merged 2 commits into
dotnet:mainfrom
jjonescz:86124-RuntimeHostInfoTestsSymlink

Conversation

@jjonescz

@jjonescz jjonescz commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

Fixes #86124.

Microsoft Reviewers: Open in CodeFlow

@jjonescz
jjonescz requested a review from AlekseyTs October 20, 2026 12:35
Copilot AI balanced review requested due to automatic review settings October 20, 2026 12:35
@jjonescz
jjonescz requested a review from a team as a code owner October 20, 2026 12:35
@jjonescz jjonescz added the Test Test failures in roslyn-CI label Oct 20, 2026
@jjonescz
jjonescz requested a review from a team as a code owner October 20, 2026 12:35
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
1 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Windows/net472 fail-before/pass-after validation remains unverified.

No open issues 🎉

What changed in this PR

Corrects Windows interop marshaling in a test helper to address the reported .NET Framework test failure in #86124.

Changes:

  • Marshals the native symbolic-link creation result as a one-byte Boolean.
  • Links the existing test to the issue.
  • Removes the testing guidance that attributed this failure to missing privileges.
File Description
src/​Compilers/​Core/​MSBuildTaskTests/​RuntimeHostInfoTests.cs Corrects return marshaling and adds issue tracking.
.github/​memory/​TESTING_STRATEGY.md Removes the symlink-test elevation guidance.

Review effort: Balanced

@AlekseyTs AlekseyTs left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (commit 2)

@jasonmalinowski jasonmalinowski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a fun one...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Compilers Test Test failures in roslyn-CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Microsoft.CodeAnalysis.BuildTasks.UnitTests.RuntimeHostInfoTests.DotNetInPath_Symlinked fails locally for net472

5 participants