stefan pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=88436ca89cdd6cfbf89b62cc2b9cc7d461d24be8
commit 88436ca89cdd6cfbf89b62cc2b9cc7d461d24be8 Author: Mike Blumenkrantz <zm...@osg.samsung.com> Date: Fri Mar 30 16:52:20 2018 -0400 tests: reduce looping in eina_test_spinlock no changes to coverage fix T6845 Reviewed-by: Stefan Schmidt <ste...@osg.samsung.com> --- src/tests/eina/eina_test_lock.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tests/eina/eina_test_lock.c b/src/tests/eina/eina_test_lock.c index f0442c57b1..583ca1a7a9 100644 --- a/src/tests/eina/eina_test_lock.c +++ b/src/tests/eina/eina_test_lock.c @@ -71,7 +71,7 @@ _eina_test_lock_thread(void *data, Eina_Thread t) fail_if(!eina_thread_equal(t, thread)); fail_if(strcmp("test", data)); - for (i = 0; i < 10000; i++) + for (i = 0; i < 150; i++) { fail_if(eina_spinlock_take(&spin) != EINA_LOCK_SUCCEED); counter++; @@ -91,7 +91,7 @@ EFL_START_TEST(eina_test_spinlock) fail_if(!eina_thread_create(&thread, EINA_THREAD_NORMAL, -1, _eina_test_lock_thread, "test")); - for (i = 0; i < 10000; i++) + for (i = 0; i < 150; i++) { fail_if(eina_spinlock_take(&spin) != EINA_LOCK_SUCCEED); counter++; @@ -100,7 +100,7 @@ EFL_START_TEST(eina_test_spinlock) fail_if(strcmp("test", eina_thread_join(thread))); - fail_if(counter != 20000); + fail_if(counter != 300); fail_if(eina_spinlock_take_try(&spin) != EINA_LOCK_SUCCEED); fail_if(eina_spinlock_release(&spin) != EINA_LOCK_SUCCEED); --