From 60c29a4aa4a900c71ff13a5df5d7c899717beca4 Mon Sep 17 00:00:00 2001 From: Zbigniew Sarbinowski Date: Mon, 23 Sep 2024 17:42:41 +0000 Subject: [PATCH 1/2] fix libcxx lit when aligned allocation/deallocation functions are not available --- .../util.smartptr.shared/libcxx.control_block_layout.pass.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libcxx/test/libcxx/utilities/memory/util.smartptr/util.smartptr.shared/libcxx.control_block_layout.pass.cpp b/libcxx/test/libcxx/utilities/memory/util.smartptr/util.smartptr.shared/libcxx.control_block_layout.pass.cpp index a298f55ea7cf5..7acdbdc2b4551 100644 --- a/libcxx/test/libcxx/utilities/memory/util.smartptr/util.smartptr.shared/libcxx.control_block_layout.pass.cpp +++ b/libcxx/test/libcxx/utilities/memory/util.smartptr/util.smartptr.shared/libcxx.control_block_layout.pass.cpp @@ -195,10 +195,12 @@ int main(int, char**) { test(); test(); +#if !defined(_LIBCPP_HAS_NO_LIBRARY_ALIGNED_ALLOCATION) test(); test(); test(); test(); +#endif test(); test(); From 2dc94f94f7c4741f3b1579ee72e6c6c3e227265b Mon Sep 17 00:00:00 2001 From: Zbigniew Sarbinowski Date: Tue, 24 Sep 2024 18:47:48 +0000 Subject: [PATCH 2/2] Switch to TEST_HAS_NO_ALIGNED_ALLOCATION macro --- .../util.smartptr.shared/libcxx.control_block_layout.pass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcxx/test/libcxx/utilities/memory/util.smartptr/util.smartptr.shared/libcxx.control_block_layout.pass.cpp b/libcxx/test/libcxx/utilities/memory/util.smartptr/util.smartptr.shared/libcxx.control_block_layout.pass.cpp index 7acdbdc2b4551..7488f518c8bae 100644 --- a/libcxx/test/libcxx/utilities/memory/util.smartptr/util.smartptr.shared/libcxx.control_block_layout.pass.cpp +++ b/libcxx/test/libcxx/utilities/memory/util.smartptr/util.smartptr.shared/libcxx.control_block_layout.pass.cpp @@ -195,7 +195,7 @@ int main(int, char**) { test(); test(); -#if !defined(_LIBCPP_HAS_NO_LIBRARY_ALIGNED_ALLOCATION) +#if !defined(TEST_HAS_NO_ALIGNED_ALLOCATION) test(); test(); test();