diff options
author | Bruno Haible <bruno@clisp.org> | 2019-06-20 17:44:59 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2019-06-20 17:44:59 +0200 |
commit | 7614f78d2a07c57f7ae15ed018409109a7de0361 (patch) | |
tree | b3cfbf800a685cded3b54117ef68aa3f9dbc10c7 | |
parent | 0dbc0378bf27549034a43acb123a36e29866e399 (diff) | |
download | gnulib-7614f78d2a07c57f7ae15ed018409109a7de0361.tar.gz gnulib-7614f78d2a07c57f7ae15ed018409109a7de0361.tar.bz2 |
tss tests: Small improvement.
* tests/test-tss.c (test_tss): Pass a different id to each thread.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | tests/test-tss.c | 3 |
2 files changed, 7 insertions, 1 deletions
@@ -1,5 +1,10 @@ 2019-06-20 Bruno Haible <bruno@clisp.org> + tss tests: Small improvement. + * tests/test-tss.c (test_tss): Pass a different id to each thread. + +2019-06-20 Bruno Haible <bruno@clisp.org> + threads: New module. * modules/threads: New file. 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++) |