Skip to content

Commit 43814e2

Browse files
committed
Revert change away from kN
1 parent 9e71857 commit 43814e2

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

libc/test/src/__support/block_test.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -347,9 +347,11 @@ TEST(LlvmLibcBlockTest, CanGetConstBlockFromUsableSpace) {
347347
}
348348

349349
TEST(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;

0 commit comments

Comments
 (0)