Skip to content

Commit dcf9d9c

Browse files
committed
Test to validate system page size
1 parent 51fd09d commit dcf9d9c

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

test/tests/Process.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
#include <gtest/gtest.h>
2-
#include <libhat/scanner.hpp>
2+
3+
#include <libhat/process.hpp>
4+
#include <libhat/system.hpp>
5+
6+
TEST(SystemTest, ValidateSystemPageSize) {
7+
auto& system = hat::get_system();
8+
EXPECT_GE(system.page_size, 4096);
9+
EXPECT_TRUE((system.page_size & (system.page_size - 1)) == 0);
10+
}
311

412
TEST(ProcessTest, ProcessModuleMatchesEmptyStr) {
513
EXPECT_EQ(hat::process::get_process_module(), hat::process::get_module({}));

0 commit comments

Comments
 (0)