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
1cd13bf2
Commit
1cd13bf2
authored
Jul 11, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
d322069a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
bigfile/tests/test_virtmem.c
bigfile/tests/test_virtmem.c
+29
-0
No files found.
bigfile/tests/test_virtmem.c
View file @
1cd13bf2
...
...
@@ -1574,7 +1574,36 @@ void test_file_access_mmapbase(void)
ok1
(
!
M
(
vma
,
2
));
CHECK_NOPAGE
(
102
);
ok1
(
!
M
(
vma
,
3
));
CHECK_NOPAGE
(
103
);
diag
(
"writeout (store+mark)"
);
mkdirty2
(
1000
);
file
.
nstoreblk
=
0
;
ok1
(
!
fileh_dirty_writeout
(
fh
,
WRITEOUT_STORE
|
WRITEOUT_MARKSTORED
));
ok1
(
file
.
nstoreblk
==
2
);
ok1
(
!
M
(
vma
,
0
));
CHECK_NOPAGE
(
100
);
ok1
(
!
M
(
vma
,
1
));
CHECK_NOPAGE
(
101
);
CHECK_NOPAGE
(
102
);
CHECK_NOPAGE
(
103
);
CHECK_MRU
(
/*empty*/
);
CHECK_DIRTY
(
/*empty*/
);
vma_unmap
(
vma
);
err
=
fileh_mmap
(
vma
,
fh
,
100
,
4
);
/* data saved; served from base layer */
ok1
(
B
(
vma
,
0
*
PSb
+
0
)
==
1000
);
ok1
(
B
(
vma
,
0
*
PSb
+
1
)
==
100
);
ok1
(
B
(
vma
,
0
*
PSb
+
PSb
-
1
)
==
100
);
ok1
(
B
(
vma
,
2
*
PSb
+
0
)
==
1002
);
ok1
(
B
(
vma
,
2
*
PSb
+
1
)
==
102
);
ok1
(
B
(
vma
,
2
*
PSb
+
PSb
-
1
)
==
102
);
ok1
(
!
M
(
vma
,
0
));
CHECK_NOPAGE
(
100
);
ok1
(
!
M
(
vma
,
1
));
CHECK_NOPAGE
(
101
);
ok1
(
!
M
(
vma
,
2
));
CHECK_NOPAGE
(
102
);
ok1
(
!
M
(
vma
,
3
));
CHECK_NOPAGE
(
103
);
// 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