[libc-commits] [libc] [libc][stdlib] Run freelist_heap_test only in full build mode. (PR #95850)
via libc-commits
libc-commits at lists.llvm.org
Mon Jun 17 14:24:15 PDT 2024
https://github.com/lntue updated https://github.com/llvm/llvm-project/pull/95850
>From 1140507ccbfcef543a726141b20df4029c556a25 Mon Sep 17 00:00:00 2001
From: Tue Ly <lntue.h at gmail.com>
Date: Mon, 17 Jun 2024 21:17:36 +0000
Subject: [PATCH 1/2] [libc][stdlib] Run freelist_heap_test only in full build
mode.
---
libc/test/src/stdlib/CMakeLists.txt | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libc/test/src/stdlib/CMakeLists.txt b/libc/test/src/stdlib/CMakeLists.txt
index 648404afb5730..82cc830aeb08a 100644
--- a/libc/test/src/stdlib/CMakeLists.txt
+++ b/libc/test/src/stdlib/CMakeLists.txt
@@ -79,6 +79,7 @@ add_libc_test(
libc.src.__support.CPP.span
)
+if(LLVM_LIBC_FULL_BUILD)
add_libc_test(
freelist_heap_test
SUITE
@@ -93,6 +94,7 @@ add_libc_test(
libc.src.string.memcmp
libc.src.string.memcpy
)
+endif()
add_fp_unittest(
strtod_test
>From 5656dfd3d7a469f58d6f5f973d36793dffbb510e Mon Sep 17 00:00:00 2001
From: Tue Ly <lntue.h at gmail.com>
Date: Mon, 17 Jun 2024 21:23:57 +0000
Subject: [PATCH 2/2] Fix indentation.
---
libc/test/src/stdlib/CMakeLists.txt | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/libc/test/src/stdlib/CMakeLists.txt b/libc/test/src/stdlib/CMakeLists.txt
index 82cc830aeb08a..0ded674ee0e12 100644
--- a/libc/test/src/stdlib/CMakeLists.txt
+++ b/libc/test/src/stdlib/CMakeLists.txt
@@ -80,20 +80,20 @@ add_libc_test(
)
if(LLVM_LIBC_FULL_BUILD)
-add_libc_test(
- freelist_heap_test
- SUITE
- libc-stdlib-tests
- SRCS
- freelist_heap_test.cpp
- freelist_malloc_test.cpp
- DEPENDS
- libc.src.__support.CPP.span
- libc.src.stdlib.freelist_heap
- libc.src.stdlib.malloc
- libc.src.string.memcmp
- libc.src.string.memcpy
-)
+ add_libc_test(
+ freelist_heap_test
+ SUITE
+ libc-stdlib-tests
+ SRCS
+ freelist_heap_test.cpp
+ freelist_malloc_test.cpp
+ DEPENDS
+ libc.src.__support.CPP.span
+ libc.src.stdlib.freelist_heap
+ libc.src.stdlib.malloc
+ libc.src.string.memcmp
+ libc.src.string.memcpy
+ )
endif()
add_fp_unittest(
More information about the libc-commits
mailing list