Skip to content

Commit 7e2b11f

Browse files
committed
Add test
1 parent 03d5449 commit 7e2b11f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lldb/source/Host/linux/Host.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ static bool GetStatusInfo(::pid_t Pid, ProcessInstanceInfo &ProcessInfo,
217217
uint32_t coredumping;
218218
Line = Line.ltrim();
219219
Line.consumeInteger(1, coredumping);
220-
ProcessInfo.SetIsCoredumping(coredumping);
220+
ProcessInfo.SetIsCoreDumping(coredumping);
221221
}
222222
}
223223
return true;

lldb/unittests/Host/posix/HostTest.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,5 +115,8 @@ TEST_F(HostTest, GetProcessInfoSetsPriority) {
115115
}
116116
ASSERT_TRUE(Info.IsZombie().has_value());
117117
ASSERT_FALSE(Info.IsZombie().value());
118+
119+
ASSERT_TRUE(Info.IsCoreDumping().has_value());
120+
ASSERT_FALSE(Info.IsCoreDumping().value());
118121
}
119122
#endif

0 commit comments

Comments
 (0)