From: Bruno Haible Date: Thu, 20 Jun 2019 15:44:59 +0000 (+0200) Subject: tss tests: Small improvement. X-Git-Tag: v1.0~4843 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=7614f78d2a07c57f7ae15ed018409109a7de0361;p=gnulib.git tss tests: Small improvement. * tests/test-tss.c (test_tss): Pass a different id to each thread. --- diff --git a/ChangeLog b/ChangeLog index 08076909d4..9c9a0122fd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2019-06-20 Bruno Haible + + tss tests: Small improvement. + * tests/test-tss.c (test_tss): Pass a different id to each thread. + 2019-06-20 Bruno Haible threads: New module. diff --git a/tests/test-tss.c b/tests/test-tss.c index b23767d218..081e1b0359 100644 --- a/tests/test-tss.c +++ b/tests/test-tss.c @@ -170,7 +170,8 @@ test_tss (void) /* Spawn the threads. */ for (i = 0; i < THREAD_COUNT; i++) - ASSERT (thrd_create (&threads[i], worker_thread, NULL) == thrd_success); + ASSERT (thrd_create (&threads[i], worker_thread, (void *) (uintptr_t) i) + == thrd_success); /* Wait for the threads to terminate. */ for (i = 0; i < THREAD_COUNT; i++)