stefan pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=594b5f496797c6a3358afe7d45ff065f033f8a59

commit 594b5f496797c6a3358afe7d45ff065f033f8a59
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Fri Mar 30 16:58:31 2018 -0400

    tests: reduce looping in slstr_thread thread callbacks
    
    this works out to the same number of total tests as slstr_many but
    now split across all the threads
    
    fix T6846
    
    Reviewed-by: Stefan Schmidt <ste...@osg.samsung.com>
---
 src/tests/eina/eina_test_slstr.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/tests/eina/eina_test_slstr.c b/src/tests/eina/eina_test_slstr.c
index 42fd845b32..fd17cef042 100644
--- a/src/tests/eina/eina_test_slstr.c
+++ b/src/tests/eina/eina_test_slstr.c
@@ -126,9 +126,9 @@ EFL_START_TEST(slstr_slstr_printf)
 EFL_END_TEST
 
 static void
-_many_do(void)
+_many_do(Eina_Bool threaded)
 {
-   const int many = 2048;
+   const int many = threaded ? 256 : 2048;
    Eina_Slstr *str;
    int k;
 
@@ -145,7 +145,7 @@ _many_do(void)
 EFL_START_TEST(slstr_many)
 {
 
-   _many_do();
+   _many_do(0);
 
    eina_slstr_local_clear();
 
@@ -155,7 +155,7 @@ EFL_END_TEST
 static void *
 _thread_cb(void *data EINA_UNUSED, Eina_Thread th EINA_UNUSED)
 {
-   _many_do();
+   _many_do(1);
 
    return NULL;
 }

-- 


Reply via email to