{"action":"created","issue":{"url":"https://api.github.com/repos/linux-test-project/ltp/issues/93","repository_url":"https://api.github.com/repos/linux-test-project/ltp","labels_url":"https://api.github.com/repos/linux-test-project/ltp/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/linux-test-project/ltp/issues/93/comments","events_url":"https://api.github.com/repos/linux-test-project/ltp/issues/93/events","html_url":"https://github.com/linux-test-project/ltp/issues/93","id":175428732,"number":93,"title":"memcg_function test case numbers error","user":{"login":"zhuxlproject","id":17582906,"avatar_url":"https://avatars.githubusercontent.com/u/17582906?v=3","gravatar_id":"","url":"https://api.github.com/users/zhuxlproject","html_url":"https://github.com/zhuxlproject","followers_url":"https://api.github.com/users/zhuxlproject/followers","following_url":"https://api.github.com/users/zhuxlproject/following{/other_user}","gists_url":"https://api.github.com/users/zhuxlproject/gists{/gist_id}","starred_url":"https://api.github.com/users/zhuxlproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhuxlproject/subscriptions","organizations_url":"https://api.github.com/users/zhuxlproject/orgs","repos_url":"https://api.github.com/users/zhuxlproject/repos","events_url":"https://api.github.com/users/zhuxlproject/events{/privacy}","received_events_url":"https://api.github.com/users/zhuxlproject/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-07T07:09:10Z","updated_at":"2016-09-12T05:50:48Z","closed_at":null,"body":"`\r\n<<<test_start>>>\r\ntag=memcg_function stime=1325378846\r\ncmdline=\"  memcg_function_test.sh\"\r\ncontacts=\"\"\r\nanalysis=exit\r\n<<<test_output>>>\r\nincrementing stop\r\n/data/ltp/testcases/bin/memcg_function_test.sh: line 282: [: 18446744073692774399: integer expression expected\r\nmemcg_function_test 1 TINFO : Running memcg_process --mmap-anon -s 4096\r\nmemcg_function_test 1 TINFO : Warming up pid: 6834\r\nmemcg_function_test 1 TINFO : Process is still here after warm up: 6834\r\nmemcg_function_test 1 TPASS : rss is 4096 as expected\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 428: echo: write error: Device or resource busy\r\nmemcg_function_test 2 TINFO : restore  /dev/memcg/memory.use_hierarchy failed\r\nmemcg_function_test 2 TINFO : Running memcg_process --mmap-file -s 4096\r\nmemcg_function_test 2 TINFO : Warming up pid: 6852\r\nmemcg_function_test 2 TINFO : Process is still here after warm up: 6852\r\nmemcg_function_test 2 TPASS : rss is 0 as expected\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 428: echo: write error: Device or resource busy\r\nmemcg_function_test 3 TINFO : restore  /dev/memcg/memory.use_hierarchy failed\r\nmemcg_function_test 3 TINFO : Running memcg_process --shm -k 3 -s 4096\r\nmemcg_function_test 3 TINFO : Warming up pid: 6870\r\nmemcg_function_test 3 TINFO : Process is still here after warm up: 6870\r\nmemcg_function_test 3 TPASS : rss is 0 as expected\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 428: echo: write error: Device or resource busy\r\nmemcg_function_test 4 TINFO : restore  /dev/memcg/memory.use_hierarchy failed\r\nmemcg_function_test 4 TINFO : Running memcg_process --mmap-anon --mmap-file --shm -s 4096\r\nmemcg_function_test 4 TINFO : Warming up pid: 6888\r\nmemcg_function_test 4 TINFO : Process is still here after warm up: 6888\r\nmemcg_function_test 4 TPASS : rss is 4096 as expected\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 428: echo: write error: Device or resource busy\r\nmemcg_function_test 5 TINFO : restore  /dev/memcg/memory.use_hierarchy failed\r\nmemcg_function_test 5 TINFO : Running memcg_process --mmap-lock1 -s 4096\r\nmemcg_function_test 5 TINFO : Warming up pid: 6905\r\nmemcg_function_test 5 TINFO : Process is still here after warm up: 6905\r\nmemcg_function_test 5 TPASS : rss is 4096 as expected\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 428: echo: write error: Device or resource busy\r\nmemcg_function_test 6 TINFO : restore  /dev/memcg/memory.use_hierarchy failed\r\nmemcg_function_test 6 TINFO : Running memcg_process --mmap-anon -s 4096\r\nmemcg_function_test 6 TINFO : Warming up pid: 6922\r\nmemcg_function_test 6 TINFO : Process is still here after warm up: 6922\r\nmemcg_function_test 6 TPASS : rss is 4096 as expected\r\nmemcg_function_test 7 TPASS : rss is 0 as expected\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 428: echo: write error: Device or resource busy\r\nmemcg_function_test 8 TINFO : restore  /dev/memcg/memory.use_hierarchy failed\r\nmemcg_function_test 8 TINFO : Running memcg_process --mmap-file -s 4096\r\nmemcg_function_test 8 TINFO : Warming up pid: 6942\r\nmemcg_function_test 8 TINFO : Process is still here after warm up: 6942\r\nmemcg_function_test 8 TPASS : rss is 0 as expected\r\nmemcg_function_test 9 TPASS : rss is 0 as expected\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 428: echo: write error: Device or resource busy\r\nmemcg_function_test 10 TINFO : restore  /dev/memcg/memory.use_hierarchy failed\r\nmemcg_function_test 10 TINFO : Running memcg_process --shm -k 8 -s 4096\r\nmemcg_function_test 10 TINFO : Warming up pid: 6962\r\nmemcg_function_test 10 TINFO : Process is still here after warm up: 6962\r\nmemcg_function_test 10 TPASS : rss is 0 as expected\r\nmemcg_function_test 11 TPASS : rss is 0 as expected\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 428: echo: write error: Device or resource busy\r\nmemcg_function_test 12 TINFO : restore  /dev/memcg/memory.use_hierarchy failed\r\nmemcg_function_test 12 TINFO : Running memcg_process --mmap-anon --mmap-file --shm -s 4096\r\nmemcg_function_test 12 TINFO : Warming up pid: 6982\r\nmemcg_function_test 12 TINFO : Process is still here after warm up: 6982\r\nmemcg_function_test 12 TPASS : rss is 4096 as expected\r\nmemcg_function_test 13 TPASS : rss is 0 as expected\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 428: echo: write error: Device or resource busy\r\nmemcg_function_test 14 TINFO : restore  /dev/memcg/memory.use_hierarchy failed\r\nmemcg_function_test 14 TINFO : Running memcg_process --mmap-lock1 -s 4096\r\nmemcg_function_test 14 TINFO : Warming up pid: 7002\r\nmemcg_function_test 14 TINFO : Process is still here after warm up: 7002\r\nmemcg_function_test 14 TPASS : rss is 4096 as expected\r\nmemcg_function_test 15 TPASS : rss is 0 as expected\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 428: echo: write error: Device or resource busy\r\nmemcg_function_test 16 TINFO : restore  /dev/memcg/memory.use_hierarchy failed\r\nmemcg_function_test 16 TINFO : Running memcg_process --mmap-anon -s 8192\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 185:  7022 Killed                  memcg_process $1 -s $2\r\nmemcg_function_test 16 TPASS : memory.failcnt is 9, > 0 as expected\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 428: echo: write error: Device or resource busy\r\nmemcg_function_test 17 TINFO : restore  /dev/memcg/memory.use_hierarchy failed\r\nmemcg_function_test 17 TINFO : Running memcg_process --mmap-file -s 8192\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 185:  7035 Killed                  memcg_process $1 -s $2\r\nmemcg_function_test 17 TPASS : memory.failcnt is 9, > 0 as expected\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 428: echo: write error: Device or resource busy\r\nmemcg_function_test 18 TINFO : restore  /dev/memcg/memory.use_hierarchy failed\r\nmemcg_function_test 18 TINFO : Running memcg_process --shm -s 8192\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 185:  7049 Killed                  memcg_process $1 -s $2\r\nmemcg_function_test 18 TPASS : memory.failcnt is 9, > 0 as expected\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 428: echo: write error: Device or resource busy\r\nmemcg_function_test 19 TINFO : restore  /dev/memcg/memory.use_hierarchy failed\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 248:  7062 Killed                  memcg_process $2 -s $3\r\nmemcg_function_test 19 TPASS : process 7062 is killed\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 428: echo: write error: Device or resource busy\r\nmemcg_function_test 20 TINFO : restore  /dev/memcg/memory.use_hierarchy failed\r\nmemcg_function_test 20 TFAIL : Failed to lock memory\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 428: echo: write error: Device or resource busy\r\nmemcg_function_test 21 TINFO : restore  /dev/memcg/memory.use_hierarchy failed\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 248:  7085 Killed                  memcg_process $2 -s $3\r\nmemcg_function_test 21 TPASS : process 7085 is killed\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 428: echo: write error: Device or resource busy\r\nmemcg_function_test 22 TINFO : restore  /dev/memcg/memory.use_hierarchy failed\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 248:  7098 Killed                  memcg_process $2 -s $3\r\nmemcg_function_test 22 TPASS : process 7098 is killed\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 428: echo: write error: Device or resource busy\r\nmemcg_function_test 23 TINFO : restore  /dev/memcg/memory.use_hierarchy failed\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 248:  7111 Killed                  memcg_process $2 -s $3\r\nmemcg_function_test 23 TPASS : process 7111 is killed\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 428: echo: write error: Device or resource busy\r\nmemcg_function_test 24 TINFO : restore  /dev/memcg/memory.use_hierarchy failed\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 248:  7123 Killed                  memcg_process $2 -s $3\r\nmemcg_function_test 24 TPASS : process 7123 is killed\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 428: echo: write error: Device or resource busy\r\nmemcg_function_test 25 TINFO : restore  /dev/memcg/memory.use_hierarchy failed\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 237:  7134 Segmentation fault      memcg_process $2 -s $3\r\nmemcg_function_test 25 TPASS : process 7134 is killed\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 428: echo: write error: Device or resource busy\r\nmemcg_function_test 26 TINFO : restore  /dev/memcg/memory.use_hierarchy failed\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 248:  7147 Killed                  memcg_process $2 -s $3\r\nmemcg_function_test 26 TPASS : process 7147 is killed\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 428: echo: write error: Device or resource busy\r\nmemcg_function_test 27 TINFO : restore  /dev/memcg/memory.use_hierarchy failed\r\nmemcg_function_test 27 TPASS : input=4095, limit_in_bytes=4096\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 428: echo: write error: Device or resource busy\r\nmemcg_function_test 28 TINFO : restore  /dev/memcg/memory.use_hierarchy failed\r\nmemcg_function_test 28 TPASS : input=4097, limit_in_bytes=8192\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 428: echo: write error: Device or resource busy\r\nmemcg_function_test 29 TINFO : restore  /dev/memcg/memory.use_hierarchy failed\r\nmemcg_function_test 29 TPASS : input=1, limit_in_bytes=4096\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 428: echo: write error: Device or resource busy\r\nmemcg_function_test 30 TINFO : restore  /dev/memcg/memory.use_hierarchy failed\r\nmemcg_function_test 30 TPASS : echo -1 > memory.limit_in_bytes passed as expected\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 428: echo: write error: Device or resource busy\r\nmemcg_function_test 31 TINFO : restore  /dev/memcg/memory.use_hierarchy failed\r\nmemcg_function_test 31 TPASS : echo 1.0 > memory.limit_in_bytes failed as expected\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 428: echo: write error: Device or resource busy\r\nmemcg_function_test 32 TINFO : restore  /dev/memcg/memory.use_hierarchy failed\r\nmemcg_function_test 32 TPASS : echo 1xx > memory.limit_in_bytes failed as expected\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 428: echo: write error: Device or resource busy\r\nmemcg_function_test 33 TINFO : restore  /dev/memcg/memory.use_hierarchy failed\r\nmemcg_function_test 33 TPASS : echo xx > memory.limit_in_bytes failed as expected\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 428: echo: write error: Device or resource busy\r\nmemcg_function_test 34 TINFO : restore  /dev/memcg/memory.use_hierarchy failed\r\n/data/ltp/testcases/bin/test.sh: line 249: echo: write error: Invalid argument\r\nmemcg_function_test 34 TFAIL : echo 1 > memory.force_empty failed unexpectedly\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 428: echo: write error: Device or resource busy\r\nmemcg_function_test 35 TINFO : restore  /dev/memcg/memory.use_hierarchy failed\r\nmemcg_function_test 35 TPASS : echo 1 > memory.force_empty failed as expected\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 428: echo: write error: Device or resource busy\r\nmemcg_function_test 36 TINFO : restore  /dev/memcg/memory.use_hierarchy failed\r\n/data/ltp/testcases/bin/test.sh: line 249: echo: write error: Invalid argument\r\nmemcg_function_test 36 TFAIL : echo 0 > memory.force_empty failed unexpectedly\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 428: echo: write error: Device or resource busy\r\nmemcg_function_test 37 TINFO : restore  /dev/memcg/memory.use_hierarchy failed\r\n/data/ltp/testcases/bin/test.sh: line 249: echo: write error: Invalid argument\r\nmemcg_function_test 37 TFAIL : echo 1.0 > memory.force_empty failed unexpectedly\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 428: echo: write error: Device or resource busy\r\nmemcg_function_test 38 TINFO : restore  /dev/memcg/memory.use_hierarchy failed\r\n/data/ltp/testcases/bin/test.sh: line 249: echo: write error: Invalid argument\r\nmemcg_function_test 38 TFAIL : echo 1xx > memory.force_empty failed unexpectedly\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 428: echo: write error: Device or resource busy\r\nmemcg_function_test 39 TINFO : restore  /dev/memcg/memory.use_hierarchy failed\r\n/data/ltp/testcases/bin/test.sh: line 249: echo: write error: Invalid argument\r\nmemcg_function_test 39 TFAIL : echo xx > memory.force_empty failed unexpectedly\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 428: echo: write error: Device or resource busy\r\nmemcg_function_test 40 TINFO : restore  /dev/memcg/memory.use_hierarchy failed\r\nmemcg_function_test 40 TPASS : echo 1 > /dev/memcg/memory.force_empty failed as expected\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 428: echo: write error: Device or resource busy\r\nmemcg_function_test 41 TINFO : restore  /dev/memcg/memory.use_hierarchy failed\r\nmemcg_function_test 41 TINFO : Running memcg_process --mmap-anon -s 4096\r\nmemcg_function_test 41 TINFO : Warming up pid: 7281\r\nmemcg_function_test 41 TINFO : Process is still here after warm up: 7281\r\nmemcg_function_test 41 TPASS : rss is 4096 as expected\r\nmemcg_function_test 42 TPASS : rss is 0 as expected\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 428: echo: write error: Device or resource busy\r\nmemcg_function_test 43 TINFO : restore  /dev/memcg/memory.use_hierarchy failed\r\nmemcg_function_test 43 TINFO : Running memcg_process --mmap-anon -s 4096\r\nmemcg_function_test 43 TINFO : Warming up pid: 7303\r\nmemcg_function_test 43 TINFO : Process is still here after warm up: 7303\r\nmemcg_function_test 43 TPASS : rss is 4096 as expected\r\nmemcg_function_test 44 TPASS : rss is 0 as expected\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 428: echo: write error: Device or resource busy\r\nmemcg_function_test 45 TINFO : restore  /dev/memcg/memory.use_hierarchy failed\r\nmemcg_function_test 45 TINFO : Running memcg_process --mmap-anon -s 4096\r\nmemcg_function_test 45 TINFO : Warming up pid: 7325\r\nmemcg_function_test 45 TINFO : Process is still here after warm up: 7325\r\nmemcg_function_test 45 TPASS : rss is 4096 as expected\r\nmemcg_function_test 46 TPASS : rss is 0 as expected\r\n/data/ltp/testcases/bin/memcg_lib.sh: line 428: echo: write error: Device or resource busy\r\nmemcg_function_test 47 TINFO : restore  /dev/memcg/memory.use_hierarchy failed\r\n<<<execution_status>>>\r\ninitiation_status=\"ok\"\r\nduration=78 termination_type=exited termination_id=1 corefile=no\r\ncutime=122 cstime=565\r\n<<<test_end>>>\r\nINFO: ltp-pan reported some tests FAIL\r\nLTP Version: 20160510\r\n\r\n       ###############################################################\r\n\r\n            Done executing testcases.\r\n            LTP Version:  20160510\r\n       ###############################################################\r\n\r\n`\r\n\r\nmemcg_function_test.sh  total_case=38,  but show 47 above.  \r\n\r\nBy debug,  I find into tst_resm funcion two times,  so  as follow:\r\nmemcg_function_test 6 TPASS : rss is 4096 as expected\r\nmemcg_function_test 7 TPASS : rss is 0 as expected\r\nAt this time, TST_COUNT add two times,  lead to number error.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/linux-test-project/ltp/issues/comments/246255498","html_url":"https://github.com/linux-test-project/ltp/issues/93#issuecomment-246255498","issue_url":"https://api.github.com/repos/linux-test-project/ltp/issues/93","id":246255498,"user":{"login":"zhuxlproject","id":17582906,"avatar_url":"https://avatars.githubusercontent.com/u/17582906?v=3","gravatar_id":"","url":"https://api.github.com/users/zhuxlproject","html_url":"https://github.com/zhuxlproject","followers_url":"https://api.github.com/users/zhuxlproject/followers","following_url":"https://api.github.com/users/zhuxlproject/following{/other_user}","gists_url":"https://api.github.com/users/zhuxlproject/gists{/gist_id}","starred_url":"https://api.github.com/users/zhuxlproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhuxlproject/subscriptions","organizations_url":"https://api.github.com/users/zhuxlproject/orgs","repos_url":"https://api.github.com/users/zhuxlproject/repos","events_url":"https://api.github.com/users/zhuxlproject/events{/privacy}","received_events_url":"https://api.github.com/users/zhuxlproject/received_events","type":"User","site_admin":false},"created_at":"2016-09-12T05:50:48Z","updated_at":"2016-09-12T05:50:48Z","body":"root@ltp:/data/ltp # uname -a\r\nLinux  3.18.12+ #11 SMP PREEMPT Wed Aug 31 11:03:03 CST 2016 aarch64 GNU/Linux\r\n\r\nroot@ltp:/data/ltp # cat  Version \r\n20160510\r\n\r\n"}}
{"actor":{"display_login":"zhuxlproject"}}