Skip to content

Commit a946a91

Browse files
committed
mapping/file_mapping: Add unit tests for VMFileMapping
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]>
1 parent 6ed7f02 commit a946a91

File tree

1 file changed

+387
-9
lines changed

1 file changed

+387
-9
lines changed

0 commit comments

Comments
 (0)