1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #14463 from sunyuan3/TestRunCapAddSYSTIME

Add TestRunCapAddSYSTIME test case.
This commit is contained in:
Brian Goff 2015-07-31 09:40:12 -04:00
commit 5276655b69

View file

@ -2775,3 +2775,7 @@ func (s *DockerSuite) TestAppArmorTraceSelf(c *check.C) {
c.Fatal("ptrace of self failed.")
}
}
func (s *DockerSuite) TestRunCapAddSYSTIME(c *check.C) {
dockerCmd(c, "run", "--cap-drop=ALL", "--cap-add=SYS_TIME", "busybox", "sh", "-c", "grep ^CapEff /proc/self/status | sed 's/^CapEff:\t//' | grep ^0000000002000000$")
}