Skip to content

vmmap: Fix vmmap according to failing unit tests #498

@rennergade

Description

@rennergade

#465 adds unit tests to VMMap to test for correctness, a few of the added tests are failing, mostly related to changing protection. Its great that we have these now so lets fix these problems.

These are the results when running the tests:

failures:
    memory::vmmap::tests::test_change_prot_end_of_region
    memory::vmmap::tests::test_change_prot_exact_boundaries
    memory::vmmap::tests::test_change_prot_middle_of_region
    memory::vmmap::tests::test_change_prot_multiple_times
    memory::vmmap::tests::test_change_prot_spanning_multiple_regions
    memory::vmmap::tests::test_change_prot_to_none
    memory::vmmap::tests::test_change_prot_to_same_value
    memory::vmmap::tests::test_find_map_space_with_hint_alignment_in_pages

test result: FAILED. 14 passed; 8 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions