Skip to content

Conversation

@mazunki
Copy link
Contributor

@mazunki mazunki commented Oct 19, 2025

Continuation of #2320 , but addressing tests.

@alfreb test/kernel/integration/paging/service.cpp has an unused heap_code variable. I see you updated this test in 2019.

The void(*heap_code)() = (void(*)()) malloc(42); line is at the very beginning of the test. I suspect the intention of this is to warm of the allocator. Did you mean to change this to magic->heap_code?

I don't want to touch the tests based on assumptions on what the intention was, without fully understanding what the idea behind it was.

Additionally, Expects(magic->last_error = Page_fault); is surely a subtle bug? That = should be ==, right?

@mazunki mazunki marked this pull request as draft October 19, 2025 16:23
@mazunki mazunki force-pushed the fix-silence-unused-parameters2 branch from a3e65a9 to 7eb6b23 Compare October 28, 2025 22:28
@mazunki mazunki force-pushed the fix-silence-unused-parameters2 branch from fc77144 to 4abfe60 Compare October 28, 2025 23:43
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.

1 participant