We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2766092 commit 975da64Copy full SHA for 975da64
test/test_base_alloc_linear.cpp
@@ -16,6 +16,17 @@
16
17
using umf_test::test;
18
19
+TEST_F(test, baseAllocLinearAllocMoreThanPoolSize) {
20
+ auto pool = std::shared_ptr<umf_ba_linear_pool_t>(
21
+ umf_ba_linear_create(0 /* minimal pool size (page size) */),
22
+ umf_ba_linear_destroy);
23
+
24
+ size_t new_size = 20 * 1024 * 1024; // = 20 MB
25
+ void *ptr = umf_ba_linear_alloc(pool.get(), new_size);
26
+ UT_ASSERTne(ptr, NULL);
27
+ memset(ptr, 0, new_size);
28
+}
29
30
TEST_F(test, baseAllocLinearMultiThreadedAllocMemset) {
31
static constexpr int NTHREADS = 10;
32
static constexpr int ITERATIONS = 1000;
0 commit comments