From 0cc2676e92186cd113987c4e9a641ddb6e5cce04 Mon Sep 17 00:00:00 2001 From: Yuan Sun Date: Fri, 18 Sep 2015 08:28:36 +0800 Subject: [PATCH] Correct wrong comment for TestRunWithoutMemoryswapLimit case. Signed-off-by: Yuan Sun Upstream-commit: cf6a53642a0abdec9e2b2269d522a20e2a885f65 Component: engine --- .../engine/integration-cli/docker_cli_run_unix_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/engine/integration-cli/docker_cli_run_unix_test.go b/components/engine/integration-cli/docker_cli_run_unix_test.go index 3b228d31a5..a8fdac0d2d 100644 --- a/components/engine/integration-cli/docker_cli_run_unix_test.go +++ b/components/engine/integration-cli/docker_cli_run_unix_test.go @@ -299,7 +299,10 @@ func (s *DockerSuite) TestRunEchoStdoutWithMemoryLimit(c *check.C) { } } -// should run without memory swap +// TestRunWithoutMemoryswapLimit sets memory limit and disables swap +// memory limit, this means the processes in the container can use +// 16M memory and as much swap memory as they need (if the host +// supports swap memory). func (s *DockerSuite) TestRunWithoutMemoryswapLimit(c *check.C) { testRequires(c, NativeExecDriver) testRequires(c, memoryLimitSupport)