mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
make the test slightly less expensive
Original commit message from CVS: make the test slightly less expensive
This commit is contained in:
parent
5f22a8a6d7
commit
305e424cdc
2 changed files with 8 additions and 4 deletions
|
@ -201,8 +201,10 @@ run_thread (GstTest * test)
|
|||
gst_test_do_signal2 (test);
|
||||
if (TESTNUM == 3)
|
||||
gst_test_do_prop (test);
|
||||
if ((i++ % 10000) == 0)
|
||||
if ((i++ % 10000) == 0) {
|
||||
g_print (".");
|
||||
g_usleep (1); /* context switch */
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
|
@ -219,7 +221,7 @@ main (int argc, char **argv)
|
|||
test1 = g_object_new (GST_TYPE_TEST, NULL);
|
||||
test2 = g_object_new (GST_TYPE_TEST, NULL);
|
||||
|
||||
for (i = 0; i < 100; i++) {
|
||||
for (i = 0; i < 20; i++) {
|
||||
g_thread_create ((GThreadFunc) run_thread, test1, TRUE, NULL);
|
||||
g_thread_create ((GThreadFunc) run_thread, test2, TRUE, NULL);
|
||||
}
|
||||
|
|
|
@ -201,8 +201,10 @@ run_thread (GstTest * test)
|
|||
gst_test_do_signal2 (test);
|
||||
if (TESTNUM == 3)
|
||||
gst_test_do_prop (test);
|
||||
if ((i++ % 10000) == 0)
|
||||
if ((i++ % 10000) == 0) {
|
||||
g_print (".");
|
||||
g_usleep (1); /* context switch */
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
|
@ -219,7 +221,7 @@ main (int argc, char **argv)
|
|||
test1 = g_object_new (GST_TYPE_TEST, NULL);
|
||||
test2 = g_object_new (GST_TYPE_TEST, NULL);
|
||||
|
||||
for (i = 0; i < 100; i++) {
|
||||
for (i = 0; i < 20; i++) {
|
||||
g_thread_create ((GThreadFunc) run_thread, test1, TRUE, NULL);
|
||||
g_thread_create ((GThreadFunc) run_thread, test2, TRUE, NULL);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue