Skip to content

Fix WSLC parser unit test argument overrides - #41496

Merged
Ben Hillis (benhillis) merged 1 commit into
masterfrom
user/benhill/fix-wslc-argument-overrides-test
Sep 1, 2026
Merged

Fix WSLC parser unit test argument overrides#41496
Ben Hillis (benhillis) merged 1 commit into
masterfrom
user/benhill/fix-wslc-argument-overrides-test

Conversation

@benhillis

Copy link
Copy Markdown
Member

Summary

  • update the remaining Argument::Create parser test call to use ArgumentOverrides
  • restore compilation after the argument factory API change

Validation

  • ./FormatSource.ps1 -ModifiedOnly $true
  • full build attempted; CMake configuration was blocked because the restored Microsoft.WSL.Kernel.6.18.40.1-1 package did not contain build/native/bin/x64/modules.vhd

Update the remaining parser test call site to use ArgumentOverrides after the Argument::Create API change.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: eb7946ff-cc0b-4ff1-a059-571334b1c988
Copilot AI lite review requested due to automatic review settings September 1, 2026 20:06

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.

🟢 Approval recommended

The change is a straightforward, correct API update in tests with no behavioral risk beyond restoring compilation.

Pull request overview

Updates the WSLC CLI parser unit tests to align with the newer Argument::Create(ArgType, ArgumentOverrides) factory API so the tests compile and continue validating parser behavior.

Changes:

  • Convert the remaining parser test Argument::Create call from the legacy positional-parameter overload to ArgumentOverrides with .Limit = Limit::Unlimited.
File summaries
File Description
test/windows/wslc/WSLCCLIParserUnitTests.cpp Updates test argument definitions to use ArgumentOverrides after the argument factory API change.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@dkbennett

David Bennett (dkbennett) commented Sep 1, 2026

Copy link
Copy Markdown
Member

looks like two PRs fixing the same issue submitted about a minute apart: #41497

@benhillis
Ben Hillis (benhillis) enabled auto-merge (squash) September 1, 2026 20:57
@benhillis
Ben Hillis (benhillis) merged commit 8e0c611 into master Sep 1, 2026
12 checks passed
@benhillis
Ben Hillis (benhillis) deleted the user/benhill/fix-wslc-argument-overrides-test branch September 1, 2026 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants