Merge branch 'master' into scmaster
[nova-tt.git] / testsuite / mlock_test.cpp
blobf38fe9ce522b7feb70d9570b468bbc79cbf93ffe
1 #define BOOST_TEST_MAIN
2 #include <boost/test/included/unit_test.hpp>
4 #include "mlock.hpp"
6 BOOST_AUTO_TEST_CASE( mlock_test )
8 long size = 1<<16;
9 char * data = new char[size];
10 mlock((void*)data, size);
11 munlock(data, size);
12 delete[] data;