| 179 | |
| 180 | |
| 181 | inline 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 { |