repo.or.cz
/
nova-tt.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'master' into scmaster
[nova-tt.git]
/
testsuite
/
mlock_test.cpp
blob
f38fe9ce522b7feb70d9570b468bbc79cbf93ffe
1
#define BOOST_TEST_MAIN
2
#include <boost/test/included/unit_test.hpp>
3
4
#include
"mlock.hpp"
5
6
BOOST_AUTO_TEST_CASE
(
mlock_test
)
7
{
8
long
size
=
1
<<
16
;
9
char
*
data
=
new
char
[
size
];
10
mlock
((
void
*)
data
,
size
);
11
munlock
(
data
,
size
);
12
delete
[]
data
;
13
}