cpp-ipc/test/mem/test_mem_central_cache_allocator.cpp
木头云 b35de5a154 fix(test): Update test.h include paths after master rebase
After rebasing onto master, test.h was moved to test/archive/.
Updated include paths in test subdirectories:
- test/imp/*.cpp: "test.h" -> "../archive/test.h"
- test/mem/*.cpp: "test.h" -> "../archive/test.h"
- test/concur/*.cpp: "test.h" -> "../archive/test.h"

This ensures all test files can properly find the test header
after the directory reorganization in master branch.
2025-12-03 08:28:37 +00:00

16 lines
413 B
C++

#include "../archive/test.h"
#include <utility>
#include "libipc/mem/central_cache_allocator.h"
TEST(central_cache_allocator, allocate) {
auto &a = ipc::mem::central_cache_allocator();
ASSERT_FALSE(nullptr == a.allocate(1));
ASSERT_FALSE(nullptr == a.allocate(10));
ASSERT_FALSE(nullptr == a.allocate(100));
ASSERT_FALSE(nullptr == a.allocate(1000));
ASSERT_FALSE(nullptr == a.allocate(10000));
}