We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbc894a commit 598ac33Copy full SHA for 598ac33
lldb/unittests/Host/posix/HostTest.cpp
@@ -116,7 +116,14 @@ TEST_F(HostTest, GetProcessInfoSetsPriority) {
116
ASSERT_TRUE(Info.IsZombie().has_value());
117
ASSERT_FALSE(Info.IsZombie().value());
118
119
- ASSERT_TRUE(Info.IsCoreDumping().has_value());
120
- ASSERT_FALSE(Info.IsCoreDumping().value());
+ const llvm::VersionTuple host_version = HostInfo::GetOSVersion();
+ if (!host_version.empty()) {
121
+ if (host_version >= llvm::VersionTuple(4, 15, 0)) {
122
+ ASSERT_TRUE(Info.IsCoreDumping().has_value());
123
+ ASSERT_FALSE(Info.IsCoreDumping().value());
124
+ } else {
125
+ ASSERT_FALSE(Info.IsCoreDumping().has_value());
126
+ }
127
128
}
129
#endif
0 commit comments