This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:

Subject: v4l2-compliance: increase sleeps that are too short
Author:  Hans Verkuil <hverkuil-ci...@xs4all.nl>
Date:    Fri Dec 3 09:40:17 2021 +0100

When running the compliance tests in a VM sometimes the VM takes
a lot longer to respond than you expect. Increase a few usleeps that
are too tight to avoid the tests failing because of that.

Signed-off-by: Hans Verkuil <hverkuil-ci...@xs4all.nl>

 utils/v4l2-compliance/v4l2-test-buffers.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=5ff5635a2671a755f9962f3caf685a2fb779048d
diff --git a/utils/v4l2-compliance/v4l2-test-buffers.cpp 
b/utils/v4l2-compliance/v4l2-test-buffers.cpp
index 4a10a63323e7..fbf926532e3f 100644
--- a/utils/v4l2-compliance/v4l2-test-buffers.cpp
+++ b/utils/v4l2-compliance/v4l2-test-buffers.cpp
@@ -2531,7 +2531,7 @@ public:
                 */
                if (!done) {
                        pthread_kill(thread, SIGUSR1);
-                       usleep(100000);
+                       sleep(1);
                }
 
                /*
@@ -2540,7 +2540,7 @@ public:
                 */
                if (!done) {
                        pthread_cancel(thread);
-                       usleep(100000);
+                       sleep(1);
                }
 
                pthread_join(thread, nullptr);
@@ -2635,7 +2635,7 @@ static int testBlockingDQBuf(struct node *node, 
cv4l_queue &q)
        thread_dqbuf.start();
 
        /* Wait for the child thread to start and block */
-       usleep(100000);
+       sleep(1);
        /* Check that it is really blocking */
        fail_on_test(thread_dqbuf.done);
 
@@ -2643,7 +2643,7 @@ static int testBlockingDQBuf(struct node *node, 
cv4l_queue &q)
        thread_streamoff.start();
 
        /* Wait for the second child to start and exit */
-       usleep(250000);
+       sleep(3);
        fail_on_test(!thread_streamoff.done);
 
        fail_on_test(node->streamoff(q.g_type()));

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to