Skip to content

Commit

Permalink
mapping/file_mapping: Add unit tests for VMFileMapping
Browse files Browse the repository at this point in the history
This commit contains a small refactor where the code that copies a page
of file data to a writeable page is moved into a new function so it can
be replaced by a test implementation during unit test execution.

Tests have been added that check the mapping returned by VMFileMapping
matches the correct offsets within the source file and that the
copy-on-write logic with page faults is handled correctly.

Signed-off-by: Roy Hopkins <[email protected]>
  • Loading branch information
roy-hopkins committed Oct 31, 2023
1 parent 6ed7f02 commit 1f6983a
Showing 1 changed file with 387 additions and 9 deletions.
Loading

0 comments on commit 1f6983a

Please sign in to comment.