[Lldb-commits] [lldb] [lldb][AIX] get host info for AIX (PR #134354)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Tue Apr 22 01:55:18 PDT 2025


================
@@ -7,21 +7,24 @@
 //===----------------------------------------------------------------------===//
 
 #include "lldb/Host/linux/Support.h"
+#include "lldb/Host/posix/Support.h"
 #include "llvm/Support/Threading.h"
 #include "gtest/gtest.h"
 
 using namespace lldb_private;
 
 TEST(Support, getProcFile_Pid) {
-  auto BufferOrError = getProcFile(getpid(), "maps");
+  auto BufferOrError = getProcFile(getpid(), "status");
   ASSERT_TRUE(BufferOrError);
   ASSERT_TRUE(*BufferOrError);
 }
 
+#ifndef _AIX
 #ifdef LLVM_ENABLE_THREADING
 TEST(Support, getProcFile_Tid) {
   auto BufferOrError = getProcFile(getpid(), llvm::get_threadid(), "comm");
   ASSERT_TRUE(BufferOrError);
   ASSERT_TRUE(*BufferOrError);
 }
 #endif /*ifdef LLVM_ENABLE_THREADING */
+#endif /*ifndef _AIX */
----------------
labath wrote:

Let's move this into lldb/unittests/Process/Linux/ProcfsTests.cpp since the function it's testing is also linux-specific.

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


More information about the lldb-commits mailing list