Skip to content

Adapt tests and msr_intel to changes in ReadMSR#17

Merged
micgor32 merged 2 commits into
mainfrom
msr_tests_adaptation
Feb 17, 2026
Merged

Adapt tests and msr_intel to changes in ReadMSR#17
micgor32 merged 2 commits into
mainfrom
msr_tests_adaptation

Conversation

@micgor32

Copy link
Copy Markdown
Contributor

Changes in #16 break the tests for msr_intel.go. This PR adapts both the logic in msr_intel, and the tests.

ReadMSR returns uint64 instead of an array of uint64 since #16.
Previously, we read first element of the array (corresponding to core 0),
now since ReadMSR only reads of MSR of core 0, we can just work with
the value it returns.

Signed-off-by: Michal Gorlas <michal.gorlas@9elements.com>
Recent changes in msr_intel.go an msr.go are breaking for
the tests. This commit adapts tests to the changes.

Signed-off-by: Michal Gorlas <michal.gorlas@9elements.com>
@micgor32 micgor32 requested a review from walterchris February 17, 2026 19:30
@micgor32 micgor32 self-assigned this Feb 17, 2026
@micgor32 micgor32 added the bug Something isn't working label Feb 17, 2026
@micgor32 micgor32 merged commit 8b54f74 into main Feb 17, 2026
5 checks passed
@micgor32 micgor32 deleted the msr_tests_adaptation branch February 17, 2026 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants