diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2024-11-02 20:45:02 -0500 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2024-11-02 20:45:02 -0500 |
commit | e8422002f84dc4313894a5b3136c44a9005081fd (patch) | |
tree | b41633d9f759306fe9c7c01e209780222b47f5df /test/test_allocator.cpp | |
parent | 6c7fd1db481ff10a16ecab958c6542784fa60b9c (diff) |
Allocator deallocate is void rather than returning FudStatus.
Diffstat (limited to 'test/test_allocator.cpp')
-rw-r--r-- | test/test_allocator.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_allocator.cpp b/test/test_allocator.cpp index 6382463..fa32a96 100644 --- a/test/test_allocator.cpp +++ b/test/test_allocator.cpp @@ -39,10 +39,10 @@ TEST(AllocatorTest, TestFudAllocator) ASSERT_TRUE(allocResult.isOkay()); auto* mem = allocResult.getOkay(); ASSERT_NE(mem, nullptr); - ASSERT_EQ(fudAllocator.deallocate(mem, 0), FudStatus::ArgumentInvalid); - ASSERT_EQ(fudAllocator.deallocate(mem, 1), FudStatus::Success); + fudAllocator.deallocate(mem, 0); + fudAllocator.deallocate(mem, 1); mem = nullptr; - ASSERT_EQ(fudAllocator.deallocate(mem, 1), FudStatus::ArgumentInvalid); + fudAllocator.deallocate(mem, 1); FailAllocator failAllocator{}; globalMockFudAlloc.m_allocator = &failAllocator; |