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) {
347347}
348348
349349TEST (LlvmLibcBlockTest, Allocate) {
350+ constexpr size_t kN = 1024 ;
351+
350352 // 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;
353355 auto result = Block::init (bytes);
354356 ASSERT_TRUE (result.has_value ());
355357 Block *block = *result;
@@ -362,8 +364,8 @@ TEST(LlvmLibcBlockTest, Allocate) {
362364 }
363365
364366 // 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;
367369 auto result = Block::init (bytes);
368370 ASSERT_TRUE (result.has_value ());
369371 Block *block = *result;
You can’t perform that action at this time.
0 commit comments