mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
Merge pull request #2226 from avagin/runsc-restore-cmd-wait
restore: fix a race condition in process.Wait()
This commit is contained in:
@@ -42,7 +42,6 @@ func showFile(t *testing.T, fname string) error {
|
||||
}
|
||||
|
||||
func TestUsernsCheckpoint(t *testing.T) {
|
||||
t.Skip("Ubuntu kernel is broken to run criu (#2196, #2198)")
|
||||
if _, err := os.Stat("/proc/self/ns/user"); os.IsNotExist(err) {
|
||||
t.Skip("userns is unsupported")
|
||||
}
|
||||
@@ -54,7 +53,6 @@ func TestUsernsCheckpoint(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestCheckpoint(t *testing.T) {
|
||||
t.Skip("Ubuntu kernel is broken to run criu (#2196, #2198)")
|
||||
testCheckpoint(t, false)
|
||||
}
|
||||
|
||||
@@ -248,7 +246,7 @@ func testCheckpoint(t *testing.T, userns bool) {
|
||||
}
|
||||
|
||||
restoreStdinW.Close()
|
||||
s, err := process.Wait()
|
||||
s, err := restoreProcessConfig.Wait()
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user