summaryrefslogtreecommitdiff
path: root/src/tests/eo/suite
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-03-02 20:37:32 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-03-06 17:03:47 +0900
commit38446d8daf207133c9fb1b11e50c0bac15ce335d (patch)
treee293e6a3ebe7cf4ff47472c93fcc0f1ed9bb7381 /src/tests/eo/suite
parenta6c0e9b06718230d9bfebf8a4eb0fab812ee7458 (diff)
tests: Remove CPU affinity from all threads
I believe that all the threads created in our test suite should be spawned without any special CPU affinity. The default parameter is not 0 (corresponds to the first CPU, known as CPU 0) but -1. Similarily the default priority is NORMAL (1), not 0 (URGENT). This also affects two unused code paths: evas render2 and gl preload. @fix
Diffstat (limited to 'src/tests/eo/suite')
-rw-r--r--src/tests/eo/suite/eo_test_threaded_calls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/eo/suite/eo_test_threaded_calls.c b/src/tests/eo/suite/eo_test_threaded_calls.c
index aea925ea62..bbbc3746ca 100644
--- a/src/tests/eo/suite/eo_test_threaded_calls.c
+++ b/src/tests/eo/suite/eo_test_threaded_calls.c
@@ -122,8 +122,8 @@ START_TEST(eo_threaded_calls_test)
122 fail_if(!eina_barrier_new(&barrier, 2)); 122 fail_if(!eina_barrier_new(&barrier, 2));
123 fail_if(!eina_barrier_new(&barrier0, 2)); 123 fail_if(!eina_barrier_new(&barrier0, 2));
124 124
125 fail_if(!eina_thread_create(&threads[0], EINA_THREAD_NORMAL, 0, _thread_job, (void *) (uintptr_t)0)); 125 fail_if(!eina_thread_create(&threads[0], EINA_THREAD_NORMAL, -1, _thread_job, (void *) (uintptr_t)0));
126 fail_if(!eina_thread_create(&threads[1], EINA_THREAD_NORMAL, 0, _thread_job, (void *) (uintptr_t)1)); 126 fail_if(!eina_thread_create(&threads[1], EINA_THREAD_NORMAL, -1, _thread_job, (void *) (uintptr_t)1));
127 127
128 fail_if(0 != (int)(uintptr_t)eina_thread_join(threads[0])); 128 fail_if(0 != (int)(uintptr_t)eina_thread_join(threads[0]));
129 fail_if(1 != (int)(uintptr_t)eina_thread_join(threads[1])); 129 fail_if(1 != (int)(uintptr_t)eina_thread_join(threads[1]));