[libc-commits] [libc] Disable prctl test when building for arm or riscv. (PR #143627)

via libc-commits libc-commits at lists.llvm.org
Tue Jun 10 16:00:35 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: Amy Huang (amykhuang)

<details>
<summary>Changes</summary>

I'm setting up a buildbot for arm32 using qemu and qemu doesn't support PR_GET_THP_DISABLE.
Disable the test for now while we figure out what to do about that.

Also disable for riscv because we may do the same for riscv buildbots.



---
Full diff: https://github.com/llvm/llvm-project/pull/143627.diff


1 Files Affected:

- (modified) libc/test/src/sys/prctl/linux/CMakeLists.txt (+6) 


``````````diff
diff --git a/libc/test/src/sys/prctl/linux/CMakeLists.txt b/libc/test/src/sys/prctl/linux/CMakeLists.txt
index b06e1c8087008..d02900e1857a0 100644
--- a/libc/test/src/sys/prctl/linux/CMakeLists.txt
+++ b/libc/test/src/sys/prctl/linux/CMakeLists.txt
@@ -1,5 +1,10 @@
 add_custom_target(libc_sys_prctl_unittests)
 
+# Temporarily disable this test while setting up arm and riscv buildbots
+# using qemu, since PR_GET_THP_DISABLE is not supported on qemu.
+if (NOT (LIBC_TARGET_ARCHITECTURE_IS_ARM OR
+	 LIBC_TARGET_ARCHITECTURE_IS_RISCV32 OR
+	 LIBC_TARGET_ARCHITECTURE_IS_RISCV64))
 add_libc_unittest(
   prctl_test
   SUITE
@@ -13,3 +18,4 @@ add_libc_unittest(
     libc.test.UnitTest.ErrnoCheckingTest
     libc.test.UnitTest.ErrnoSetterMatcher
 )
+endif()

``````````

</details>


https://github.com/llvm/llvm-project/pull/143627


More information about the libc-commits mailing list