diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2021-12-03 09:40:17 +0100 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2021-12-03 09:40:17 +0100 |
commit | 5ff5635a2671a755f9962f3caf685a2fb779048d (patch) | |
tree | fa4138426ae52f1166f67a7f0095d27fc1bf2c9c | |
parent | f0dee8a3ee59d638e91d3b03c9c4c824bff0b6dc (diff) | |
download | v4l-utils-5ff5635a2671a755f9962f3caf685a2fb779048d.tar.gz |
v4l2-compliance: increase sleeps that are too short
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-cisco@xs4all.nl>
-rw-r--r-- | utils/v4l2-compliance/v4l2-test-buffers.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/v4l2-compliance/v4l2-test-buffers.cpp b/utils/v4l2-compliance/v4l2-test-buffers.cpp index 4a10a633..fbf92653 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())); |