diff options
| -rw-r--r-- | meta/recipes-extended/ltp/ltp/0035-fix-test_proc_kill-hang.patch | 23 | ||||
| -rw-r--r-- | meta/recipes-extended/ltp/ltp_20160126.bb | 1 |
2 files changed, 24 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 | ||
diff --git a/meta/recipes-extended/ltp/ltp_20160126.bb b/meta/recipes-extended/ltp/ltp_20160126.bb index 6be2187eaa..097c16d570 100644 --- a/meta/recipes-extended/ltp/ltp_20160126.bb +++ b/meta/recipes-extended/ltp/ltp_20160126.bb | |||
| @@ -61,6 +61,7 @@ SRC_URI = "git://github.com/linux-test-project/ltp.git \ | |||
| 61 | file://0032-regen.sh-Include-asm-unistd.h-explicitly.patch \ | 61 | file://0032-regen.sh-Include-asm-unistd.h-explicitly.patch \ |
| 62 | file://0033-shmat1-Cover-GNU-specific-code-under-__USE_GNU.patch \ | 62 | file://0033-shmat1-Cover-GNU-specific-code-under-__USE_GNU.patch \ |
| 63 | file://0034-periodic_output.patch \ | 63 | file://0034-periodic_output.patch \ |
| 64 | file://0035-fix-test_proc_kill-hang.patch \ | ||
| 64 | " | 65 | " |
| 65 | 66 | ||
| 66 | S = "${WORKDIR}/git" | 67 | S = "${WORKDIR}/git" |
