[Lldb-commits] [lldb] cf7301a - [lldb] Disable the process architecture test on macOS as well
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Tue Apr 29 07:59:46 PDT 2025
Author: Pavel Labath
Date: 2025-04-29T16:59:23+02:00
New Revision: cf7301aeb808a13fe882a4b0bf7f1bfe4051c301
URL: https://github.com/llvm/llvm-project/commit/cf7301aeb808a13fe882a4b0bf7f1bfe4051c301
DIFF: https://github.com/llvm/llvm-project/commit/cf7301aeb808a13fe882a4b0bf7f1bfe4051c301.diff
LOG: [lldb] Disable the process architecture test on macOS as well
Fails on the x86_64 bot.
Added:
Modified:
lldb/unittests/Host/posix/HostTest.cpp
Removed:
################################################################################
diff --git a/lldb/unittests/Host/posix/HostTest.cpp b/lldb/unittests/Host/posix/HostTest.cpp
index 6d38655b03ed0..5d50de3524d1e 100644
--- a/lldb/unittests/Host/posix/HostTest.cpp
+++ b/lldb/unittests/Host/posix/HostTest.cpp
@@ -32,8 +32,6 @@ class HostTest : public testing::Test {
} // namespace
TEST_F(HostTest, GetProcessInfo) {
- llvm::Triple triple = HostInfo::GetTargetTriple();
-
ProcessInstanceInfo Info;
ASSERT_FALSE(Host::GetProcessInfo(LLDB_INVALID_PROCESS_ID, Info));
@@ -67,9 +65,13 @@ TEST_F(HostTest, GetProcessInfo) {
EXPECT_TRUE(Info.GroupIDIsValid());
EXPECT_EQ(getegid(), Info.GetGroupID());
+ // Unexpected value on Apple x86_64
+#ifndef __APPLE__
EXPECT_TRUE(Info.GetArchitecture().IsValid());
EXPECT_EQ(HostInfo::GetArchitecture(HostInfo::eArchKindDefault),
Info.GetArchitecture());
+#endif
+
// Test timings
// In some sense this is a pretty trivial test. What it is trying to
// accomplish is just to validate that these values are never decreasing
More information about the lldb-commits
mailing list