diff options
-rw-r--r-- | tests/prime_self_import.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/prime_self_import.c b/tests/prime_self_import.c index 3e482b79..dd9c2933 100644 --- a/tests/prime_self_import.c +++ b/tests/prime_self_import.c @@ -341,8 +341,6 @@ static void test_export_close_race(void) int obj_count; void *status; - obj_count = get_object_count(); - num_threads = sysconf(_SC_NPROCESSORS_ONLN); threads = calloc(num_threads, sizeof(pthread_t)); @@ -350,6 +348,8 @@ static void test_export_close_race(void) fd = drm_open_any(); igt_assert(fd >= 0); + obj_count = get_object_count(); + for (i = 0; i < num_threads; i++) { r = pthread_create(&threads[i], NULL, thread_fn_export_vs_close, |