Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
a035458f
Commit
a035458f
authored
Jul 10, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
d3fe8249
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
bigfile/tests/test_virtmem.c
bigfile/tests/test_virtmem.c
+23
-0
No files found.
bigfile/tests/test_virtmem.c
View file @
a035458f
...
...
@@ -1248,6 +1248,9 @@ void test_file_access_mmapbase(void)
err
=
fileh_mmap
(
vma
,
fh
,
100
,
4
);
ok1
(
!
err
);
ok1
(
fh
->
mmaps
.
next
==
&
vma
->
same_fileh
);
ok1
(
vma
->
same_fileh
.
next
==
&
fh
->
mmaps
);
/* all pages initially unmapped */
ok1
(
!
M
(
vma
,
0
));
CHECK_NOPAGE
(
100
);
ok1
(
!
M
(
vma
,
1
));
CHECK_NOPAGE
(
101
);
...
...
@@ -1346,6 +1349,26 @@ void test_file_access_mmapbase(void)
// XXX verify notify_munmap was correctly called
/* map vma back - dirty pages should be there _and_ mapped to vma.
* (this differs from !wcfs case which does not mmap dirty pages until access) */
diag
(
"vma mmap again"
);
err
=
fileh_mmap
(
vma
,
fh
,
100
,
4
);
ok1
(
!
err
);
ok1
(
fh
->
mmaps
.
next
==
&
vma
->
same_fileh
);
ok1
(
vma
->
same_fileh
.
next
==
&
fh
->
mmaps
);
ok1
(
M
(
vma
,
0
));
CHECK_PAGE
(
page0
,
100
,
PAGE_DIRTY
,
1
);
ok1
(
!
M
(
vma
,
1
));
CHECK_NOPAGE
(
101
);
ok1
(
M
(
vma
,
2
));
CHECK_PAGE
(
page2
,
102
,
PAGE_DIRTY
,
1
);
ok1
(
!
M
(
vma
,
3
));
CHECK_NOPAGE
(
103
);
CHECK_MRU
(
page0
,
page2
);
CHECK_DIRTY
(
page0
,
page2
);
// XXX read page0
// XXX read page3
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment