From 0d9bc4b6545d2556350e844d623b781f69f0844e Mon Sep 17 00:00:00 2001 From: nprimo Date: Mon, 27 Feb 2023 12:05:41 +0100 Subject: [PATCH] feat(job-regist): add new test case --- sh/tests/job-regist_test.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/sh/tests/job-regist_test.sh b/sh/tests/job-regist_test.sh index aded4d1d3..430452abe 100644 --- a/sh/tests/job-regist_test.sh +++ b/sh/tests/job-regist_test.sh @@ -36,12 +36,12 @@ two_processes () { source $script_dirS/$1 } -one_process_and_kill () { - echo do something -} - one_process_and_suspend () { - echo do something + sleep 5 & + source $script_dirS/$1 + kill -STOP %1 + sleep 2 + kill -CONT %1 } # end of test cases @@ -57,3 +57,4 @@ challenge () { challenge one_process challenge two_processes +challenge one_process_and_suspend