Fix the Region.OutOfMemory test
Some checks failed
CMake on multiple platforms / build (Release, cl, cl, windows-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, macos-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, ubuntu-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, gcc, g++, ubuntu-latest) (push) Has been cancelled

This commit is contained in:
2026-09-10 21:37:27 -07:00
parent f70de19d0d
commit f3e9c789b9

View File

@@ -41,7 +41,7 @@ TEST(Region, OutOfMemory)
mimir::init(); mimir::init();
mimir::Region region; mimir::Region region;
EXPECT_TRUE(region.init(1ULL << 46)); // Attempt to reserve 64TB of pages EXPECT_TRUE(region.init(1ULL << 46)); // Attempt to reserve 64TB of pages
EXPECT_FALSE(region.resize(1ULL << 45)); // Attempt to commit 32TB of pages (Assuming we don't have 32TB of ram!) EXPECT_FALSE(region.resize(1ULL << 60)); // Attempt to commit an extremely large number of pages
} }
TEST(Region, Min1GB) TEST(Region, Min1GB)