Skip to content

Fix native to IL line number mappings in SOS test scripts#5740

Open
leculver wants to merge 1 commit intodotnet:mainfrom
leculver:issue_794
Open

Fix native to IL line number mappings in SOS test scripts#5740
leculver wants to merge 1 commit intodotnet:mainfrom
leculver:issue_794

Conversation

@leculver
Copy link
Contributor

Remove alternative line number matches (e.g., (53|57), (11|20)) that were needed for older runtime versions. Now that the IL conversion fix has landed, tests should expect the correct line numbers only.

Fixes #794

Copilot AI review requested due to automatic review settings February 25, 2026 18:06
@leculver leculver requested a review from a team as a code owner February 25, 2026 18:06
Copy link
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

This pull request removes alternative line number matches from SOS test scripts that were required to support older runtime versions. After a runtime fix for native-to-IL line number mappings landed, tests can now expect exact line numbers instead of patterns like (11|20) or (53|57).

Changes:

  • Removed alternative line number patterns from six SOS test script files
  • Updated expectations to use single, correct line numbers that match actual source code locations
  • Aligned with the IL conversion fix referenced in issue #794

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
TaskNestedException.script Updated line numbers for RandomUserTask constructor (19→26) and InnerException (37→38)
StackTests.script Updated NestedExceptionTest.Program.Main line number from (11|20) to 20
StackAndOtherTests.script Updated line numbers for Foo2 (31→32) and Foo4 (53→57) across multiple ClrStack commands
OtherCommands.script Updated line numbers for Foo2 (31→32) and Foo4 (37|57→37)
NestedExceptionTest.script Updated NestedExceptionTest.Program.Main line number from (11|20) to 20
DivZero.script Updated DivZero C.Main line number from (57|56) to 57

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@leculver
Copy link
Contributor Author

leculver commented Feb 26, 2026

Taking a look at the failures tomorrow.

noahfalk
noahfalk previously approved these changes Feb 26, 2026
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.

Fix native to IL conversion for older runtime versions

3 participants