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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
69515a9f
Commit
69515a9f
authored
Jul 11, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
71b0888e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
bigfile/tests/test_virtmem.c
bigfile/tests/test_virtmem.c
+8
-5
No files found.
bigfile/tests/test_virtmem.c
View file @
69515a9f
...
...
@@ -1491,8 +1491,8 @@ void test_file_access_mmapbase(void)
err
=
fileh_mmap
(
vma
,
fh
,
100
,
4
);
ok1
(
!
err
);
B
(
vma
,
0
*
PSb
)
=
gen
+
0
;
B
(
vma
,
2
*
PSb
)
=
gen
+
2
;
B
(
vma
,
0
*
PSb
)
=
gen
+
0
;
vma_unmap
(
vma
);
page0
=
pagemap_get
(
&
fh
->
pagemap
,
100
);
ok1
(
page0
);
page2
=
pagemap_get
(
&
fh
->
pagemap
,
102
);
ok1
(
page2
);
...
...
@@ -1505,8 +1505,8 @@ void test_file_access_mmapbase(void)
CHECK_PAGE
(
page2
,
102
,
PAGE_DIRTY
,
0
);
CHECK_NOPAGE
(
103
);
CHECK_MRU
(
page
2
,
page0
);
CHECK_DIRTY
(
page
2
,
page0
);
CHECK_MRU
(
page
0
,
page2
);
CHECK_DIRTY
(
page
0
,
page2
);
}
diag
(
"writeout (store)"
);
...
...
@@ -1518,8 +1518,8 @@ void test_file_access_mmapbase(void)
CHECK_PAGE
(
page2
,
102
,
PAGE_DIRTY
,
0
);
CHECK_NOPAGE
(
103
);
CHECK_MRU
(
page
2
,
page0
);
CHECK_DIRTY
(
page2
,
page0
);
CHECK_MRU
(
page
0
,
page2
);
CHECK_DIRTY
(
page2
,
page0
);
/* note becomes sorted by f_pgoffset */
ok1
(
B
(
vma
,
0
*
PSb
+
0
)
==
10
);
ok1
(
B
(
vma
,
0
*
PSb
+
1
)
==
100
);
...
...
@@ -1538,6 +1538,9 @@ void test_file_access_mmapbase(void)
xmunmap
(
b0
,
PS
);
xmunmap
(
b2
,
PS
);
diag
(
"writeout (mark)"
);
// XXX
// XXX invalidation ?
...
...
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