libct/int/checkpoint_test: use waitProcess helper

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin
2021-05-05 11:45:02 -07:00
parent 72d7a8249d
commit 7eb1405b60
+1 -6
View File
@@ -196,12 +196,7 @@ func testCheckpoint(t *testing.T, userns bool) {
ok(t, err)
restoreStdinW.Close()
s, err := restoreProcessConfig.Wait()
ok(t, err)
if !s.Success() {
t.Fatal(s.String(), pid)
}
waitProcess(restoreProcessConfig, t)
output := restoreStdout.String()
if !strings.Contains(output, "Hello!") {