summaryrefslogtreecommitdiff
path: root/test/sq-poll-kthread.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/sq-poll-kthread.c')
-rw-r--r--test/sq-poll-kthread.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/sq-poll-kthread.c b/test/sq-poll-kthread.c
index d53605c..37f0b0f 100644
--- a/test/sq-poll-kthread.c
+++ b/test/sq-poll-kthread.c
@@ -118,7 +118,8 @@ err_pipe:
return ret;
}
-int test_sq_poll_kthread_stopped(bool do_exit) {
+int test_sq_poll_kthread_stopped(bool do_exit)
+{
pid_t pid;
int status = 0;
@@ -133,6 +134,7 @@ int test_sq_poll_kthread_stopped(bool do_exit) {
if (status != 0)
return WEXITSTATUS(status);
+ sleep(1);
if (system("ps --ppid 2 | grep " KTHREAD_NAME) == 0) {
fprintf(stderr, "%s kthread still running!\n", KTHREAD_NAME);
return TEST_FAILED;