MCPcopy Create free account
hub / github.com/apache/mesos / assertDockerKillStatus

Function assertDockerKillStatus

src/tests/containerizer/docker_common.hpp:181–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179
180
181inline void assertDockerKillStatus(process::Future<Option<int>>& status)
182{
183#ifdef __WINDOWS__
184 // On Windows, there is no standard exit code for determining if a process
185 // as been killed. However, in Docker, it will not return 0.
186 AWAIT_EXPECT_WEXITSTATUS_NE(0, status.get());
187#else
188 AWAIT_EXPECT_WEXITSTATUS_EQ(128 + SIGKILL, status);
189#endif // __WINDOWS__
190}
191
192} // namespace tests {
193} // namespace internal {

Callers 2

TEST_FFunction · 0.85
TEST_FFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected