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
56b8ddda
Commit
56b8ddda
authored
Jul 10, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
4dbf0329
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
bigfile/tests/test_virtmem.c
bigfile/tests/test_virtmem.c
+7
-11
No files found.
bigfile/tests/test_virtmem.c
View file @
56b8ddda
...
...
@@ -242,22 +242,18 @@ void _assert_pagev(const char *subj, Page **vok, int nok, Page **pagev, int n,
_gen_result
(
0
,
func
,
file
,
line
,
"%s failed"
,
subj
);
}
else
{
char
vstr
[
128
],
*
s
=&
vstr
[
0
];
int
l
=
sizeof
(
vstr
),
d
;
d
=
snprintf
(
s
,
l
,
"["
);
s
+=
d
;
l
-=
d
;
for
(
i
=
0
;
i
<
n
;
i
++
)
{
d
=
snprintf
(
s
,
l
,
"%sp%ld"
,
(
i
>
0
?
", "
:
""
),
pagev
[
i
]
->
f_pgoffset
);
s
+=
d
;
l
-=
d
;
}
d
=
snprintf
(
s
,
l
,
"]"
);
s
+=
d
;
l
-=
d
;
char
*
vstr
;
asprintf
(
&
vstr
,
"["
);
for
(
i
=
0
;
i
<
n
;
i
++
)
asprintf
(
&
vstr
,
"%sp%ld"
,
(
i
>
0
?
", "
:
""
),
pagev
[
i
]
->
f_pgoffset
);
asprintf
(
&
vstr
,
"]"
);
pass
(
"%s %s"
,
subj
,
vstr
);
free
(
vstr
);
}
}
/* _check_mru checks that ram has MRU pages as specified by pagev */
/* _check_mru checks that ram has MRU pages as specified by pagev
.
*/
void
_check_mru
(
RAM
*
ram
,
Page
*
mruok
[],
int
nok
,
const
char
*
func
,
const
char
*
file
,
int
line
)
{
Page
**
mruv
=
NULL
;
int
n
=
0
;
...
...
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