From aca23c08cf472f5e09423c2f0afc1c428491c8ae Mon Sep 17 00:00:00 2001 From: Triang3l Date: Sun, 22 Nov 2020 18:49:47 +0300 Subject: [PATCH] [Memory] Fix kFileMappingHandleInvalid typos in tests --- src/xenia/base/testing/memory_test.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xenia/base/testing/memory_test.cc b/src/xenia/base/testing/memory_test.cc index 7a19a55a4..9853989ad 100644 --- a/src/xenia/base/testing/memory_test.cc +++ b/src/xenia/base/testing/memory_test.cc @@ -421,7 +421,7 @@ TEST_CASE("create_and_close_file_mapping", "Virtual Memory Mapping") { auto path = fmt::format("xenia_test_{}", Clock::QueryHostTickCount()); auto memory = xe::memory::CreateFileMappingHandle( path, 0x100, xe::memory::PageAccess::kReadWrite, true); - REQUIRE(memory != xe::memory::FileMappingHandleInvalid); + REQUIRE(memory != xe::memory::kFileMappingHandleInvalid); xe::memory::CloseFileMappingHandle(memory, path); } @@ -430,7 +430,7 @@ TEST_CASE("map_view", "Virtual Memory Mapping") { const size_t length = 0x100; auto memory = xe::memory::CreateFileMappingHandle( path, length, xe::memory::PageAccess::kReadWrite, true); - REQUIRE(memory != xe::memory::FileMappingHandleInvalid); + REQUIRE(memory != xe::memory::kFileMappingHandleInvalid); uintptr_t address = 0x100000000; auto view = @@ -447,7 +447,7 @@ TEST_CASE("read_write_view", "Virtual Memory Mapping") { auto path = fmt::format("xenia_test_{}", Clock::QueryHostTickCount()); auto memory = xe::memory::CreateFileMappingHandle( path, length, xe::memory::PageAccess::kReadWrite, true); - REQUIRE(memory != xe::memory::FileMappingHandleInvalid); + REQUIRE(memory != xe::memory::kFileMappingHandleInvalid); uintptr_t address = 0x100000000; auto view =