[libc-commits] [libc] [libc] skip sysconf test for rv32 (PR #162669)
Schrodinger ZHU Yifan via libc-commits
libc-commits at lists.llvm.org
Thu Oct 9 08:25:48 PDT 2025
https://github.com/SchrodingerZhu updated https://github.com/llvm/llvm-project/pull/162669
>From 8c22e9d9c3e512d4cade6e5053e71cbe524fbbb7 Mon Sep 17 00:00:00 2001
From: Schrodinger ZHU Yifan <yifanzhu at rochester.edu>
Date: Thu, 9 Oct 2025 10:48:06 -0400
Subject: [PATCH] [libc] skip sysconf test for rv32
---
libc/test/src/unistd/sysconf_test.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libc/test/src/unistd/sysconf_test.cpp b/libc/test/src/unistd/sysconf_test.cpp
index 85bc1258a4863..e6a35c70f29e8 100644
--- a/libc/test/src/unistd/sysconf_test.cpp
+++ b/libc/test/src/unistd/sysconf_test.cpp
@@ -13,5 +13,9 @@
TEST(LlvmLibcSysconfTest, PagesizeTest) {
long pagesize = LIBC_NAMESPACE::sysconf(_SC_PAGESIZE);
+ // TODO: fix page size support on RV32
+ // (https://github.com/llvm/llvm-project/issues/162671)
+#ifndef LIBC_TARGET_ARCH_IS_RISCV32
ASSERT_GT(pagesize, 0l);
+#endif
}
More information about the libc-commits
mailing list