Module Name: src Committed By: kamil Date: Sun Mar 10 13:24:51 UTC 2019
Modified Files: src/tests/modules: t_kcov.c Log Message: Fix bug in kcov_multiple_threads in t_kcov Spawn the expected number of threads rather than hardcoding one value for all tests. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/tests/modules/t_kcov.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/modules/t_kcov.c diff -u src/tests/modules/t_kcov.c:1.5 src/tests/modules/t_kcov.c:1.6 --- src/tests/modules/t_kcov.c:1.5 Sun Mar 10 12:54:39 2019 +++ src/tests/modules/t_kcov.c Sun Mar 10 13:24:50 2019 @@ -418,10 +418,10 @@ kcov_multiple_threads(size_t N) ATF_REQUIRE(__arraycount(thread) >= N); - for (i = 0; i < __arraycount(thread); i++) + for (i = 0; i < N; i++) pthread_create(&thread[i], NULL, multiple_threads_helper, NULL); - for (i = 0; i < __arraycount(thread); i++) + for (i = 0; i < N; i++) pthread_join(thread[i], NULL); }