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 8f6ba70 commit 3609dfbCopy full SHA for 3609dfb
lldb/unittests/Host/posix/HostTest.cpp
@@ -15,6 +15,10 @@
15
#include <cerrno>
16
#include <sys/resource.h>
17
18
+#ifdef __linux__
19
+#include <linux/version.h>
20
+#endif // __linux__
21
+
22
using namespace lldb_private;
23
24
namespace {
@@ -116,7 +120,12 @@ TEST_F(HostTest, GetProcessInfoSetsPriority) {
116
120
ASSERT_TRUE(Info.IsZombie().has_value());
117
121
ASSERT_FALSE(Info.IsZombie().value());
118
122
123
+ // CoreDumping was added in kernel version 4.15.
124
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0)
119
125
ASSERT_TRUE(Info.IsCoreDumping().has_value());
126
ASSERT_FALSE(Info.IsCoreDumping().value());
127
+#else
128
+ ASSERT_FALSE(Info.IsCoreDumping().has_value());
129
+#endif
130
}
131
#endif
0 commit comments