mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
libct/int/checkpoint_test: use waitProcess helper
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
@@ -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!") {
|
||||
|
||||
Reference in New Issue
Block a user