Signed-off-by: Yuan Sun <sunyuan3@huawei.com>
| ... | ... |
@@ -299,7 +299,10 @@ func (s *DockerSuite) TestRunEchoStdoutWithMemoryLimit(c *check.C) {
|
| 299 | 299 |
} |
| 300 | 300 |
} |
| 301 | 301 |
|
| 302 |
-// should run without memory swap |
|
| 302 |
+// TestRunWithoutMemoryswapLimit sets memory limit and disables swap |
|
| 303 |
+// memory limit, this means the processes in the container can use |
|
| 304 |
+// 16M memory and as much swap memory as they need (if the host |
|
| 305 |
+// supports swap memory). |
|
| 303 | 306 |
func (s *DockerSuite) TestRunWithoutMemoryswapLimit(c *check.C) {
|
| 304 | 307 |
testRequires(c, NativeExecDriver) |
| 305 | 308 |
testRequires(c, memoryLimitSupport) |