diff options
author | Tudor Florea <tudor.florea@enea.com> | 2016-04-01 13:46:20 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-04-03 15:51:35 +0100 |
commit | 46eed0a4aaac943fff9cdba81848a9e0b1154b5c (patch) | |
tree | 7ae96fb2b941517b3cbfc6c36557d726de33f81e /meta/recipes-extended/ltp/ltp | |
parent | 207ee90595a4e36c7358db7920562ad19ecb4179 (diff) | |
download | poky-46eed0a4aaac943fff9cdba81848a9e0b1154b5c.tar.gz |
ltp: fix test_proc_kill hanging
(From OE-Core rev: 725aad58b917533d5f60bc5a8968ac89038ef219)
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/ltp/ltp')
-rw-r--r-- | meta/recipes-extended/ltp/ltp/0035-fix-test_proc_kill-hang.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/meta/recipes-extended/ltp/ltp/0035-fix-test_proc_kill-hang.patch b/meta/recipes-extended/ltp/ltp/0035-fix-test_proc_kill-hang.patch new file mode 100644 index 0000000000..32ae8aa271 --- /dev/null +++ b/meta/recipes-extended/ltp/ltp/0035-fix-test_proc_kill-hang.patch | |||
@@ -0,0 +1,23 @@ | |||
1 | Fix test_proc_kill hanging | ||
2 | |||
3 | Sometimes the signal is delivered to memcg_process before the framework took | ||
4 | into consideration its pid entered in the tasks. Fixed by delaying the signal | ||
5 | send command. | ||
6 | |||
7 | Signed-off-by: George Nita <george.nita@enea.com> | ||
8 | Upstream-Status: Pending | ||
9 | |||
10 | diff --git a/testcases/kernel/controllers/memcg/functional/memcg_lib.sh b/testcases/kernel/controllers/memcg/functional/memcg_lib.sh | ||
11 | index ffbe006..e81bf74 100755 | ||
12 | --- a/testcases/kernel/controllers/memcg/functional/memcg_lib.sh | ||
13 | +++ b/testcases/kernel/controllers/memcg/functional/memcg_lib.sh | ||
14 | @@ -220,8 +220,8 @@ test_proc_kill() | ||
15 | |||
16 | $TEST_PATH/memcg_process $2 -s $3 & | ||
17 | pid=$! | ||
18 | - sleep 1 | ||
19 | echo $pid > tasks | ||
20 | + sleep 1 | ||
21 | |||
22 | kill -s USR1 $pid 2> /dev/null | ||
23 | sleep 1 | ||