Skip to content

Fix broken run-file test RefDirective_Duplicate#54147

Closed
jjonescz wants to merge 1 commit intodotnet:mainfrom
jjonescz:54144-broken-main
Closed

Fix broken run-file test RefDirective_Duplicate#54147
jjonescz wants to merge 1 commit intodotnet:mainfrom
jjonescz:54144-broken-main

Conversation

@jjonescz
Copy link
Copy Markdown
Member

Fixes #54144.

@jjonescz jjonescz requested a review from kotlarmilos April 29, 2026 10:37
@jjonescz jjonescz added the Area-run-file Items related to the "dotnet run <file>" effort label Apr 29, 2026
Copilot AI review requested due to automatic review settings April 29, 2026 10:37
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the file-based dotnet run directive tests to match current behavior where duplicate #:ref directives no longer cause a failure, fixing the broken RefDirective_Duplicate test referenced in #54144.

Changes:

  • Adjust RefDirective_Duplicate to expect dotnet run to succeed when #:ref directives are duplicated.
  • Remove outdated expectations/comments that duplicates should be reported as errors.

Comment thread test/dotnet.Tests/CommandTests/Run/RunFileTests_Directives.cs
@jjonescz
Copy link
Copy Markdown
Member Author

Looks like this fix was cherry-picked and merged as part of #54135.

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

Labels

Area-run-file Items related to the "dotnet run <file>" effort

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Known Build Error] RefDirective_Duplicate test asserts Fail()

3 participants