Skip to content

Commit cb19ff6

Browse files
committed
criu check --feature userns
Signed-off-by: Andrei Vagin <[email protected]>
1 parent f7fdd39 commit cb19ff6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libcontainer/integration/checkpoint_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"bytes"
66
"io/ioutil"
77
"os"
8+
"os/exec"
89
"path/filepath"
910
"strings"
1011
"syscall"
@@ -42,6 +43,10 @@ func TestUsernsCheckpoint(t *testing.T) {
4243
if _, err := os.Stat("/proc/self/ns/user"); os.IsNotExist(err) {
4344
t.Skip("userns is unsupported")
4445
}
46+
cmd := exec.Command("criu", "check", "--feature", "userns")
47+
if err := cmd.Run(); err != nil {
48+
t.Skip("Unable to c/r a container with userns")
49+
}
4550
testCheckpoint(t, true)
4651
}
4752

0 commit comments

Comments
 (0)