Testcase_30 function testing mem_cgroup_force_empty_write
function return -EBUSY,when there is a task in cgroup.
Namely when setting memory.force_empty,it will be failed.
However,kernel 3.16 and above do nothing,
whatever there is a task in cgroup or not.

Signed-off-by: Xiumiao Song <songxium...@inspur.com>
---
 .../kernel/controllers/memcg/functional/memcg_function_test.sh | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git 
a/testcases/kernel/controllers/memcg/functional/memcg_function_test.sh 
b/testcases/kernel/controllers/memcg/functional/memcg_function_test.sh
index 2c2f32a..6a5c58d 100755
--- a/testcases/kernel/controllers/memcg/functional/memcg_function_test.sh
+++ b/testcases/kernel/controllers/memcg/functional/memcg_function_test.sh
@@ -234,11 +234,11 @@ testcase_30()
        sleep 1
 
        echo 1 > memory.force_empty 2> /dev/null
-       if [ $? -ne 0 ]; then
-               result $PASS "force memory failed as expected"
-       else
-               result $FAIL "force memory should fail"
-       fi
+       if [ $? -eq 0 ]; then
+                result $PASS "force memory succeeded"
+        else
+                result $FAIL "force memory failed"
+        fi     
 
        kill -s INT $pid 2> /dev/null
 }
-- 
1.9.1



------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to