File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -347,9 +347,11 @@ TEST(LlvmLibcBlockTest, CanGetConstBlockFromUsableSpace) {
347
347
}
348
348
349
349
TEST (LlvmLibcBlockTest, Allocate) {
350
+ constexpr size_t kN = 1024 ;
351
+
350
352
// Ensure we can allocate everything up to the block size within this block.
351
- for (size_t i = 0 ; i < 1024 ; ++i) {
352
- array<byte, 1024 > bytes;
353
+ for (size_t i = 0 ; i < kN ; ++i) {
354
+ array<byte, kN > bytes;
353
355
auto result = Block::init (bytes);
354
356
ASSERT_TRUE (result.has_value ());
355
357
Block *block = *result;
@@ -362,8 +364,8 @@ TEST(LlvmLibcBlockTest, Allocate) {
362
364
}
363
365
364
366
// Ensure we can allocate a byte at every guaranteeable alignment.
365
- for (size_t i = 1 ; i < 1024 / alignof (max_align_t ); ++i) {
366
- array<byte, 1024 > bytes;
367
+ for (size_t i = 1 ; i < kN / alignof (max_align_t ); ++i) {
368
+ array<byte, kN > bytes;
367
369
auto result = Block::init (bytes);
368
370
ASSERT_TRUE (result.has_value ());
369
371
Block *block = *result;
You can’t perform that action at this time.
0 commit comments