Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/modules Fix bug in kcov_multiple_threads in t_kcov
details: https://anonhg.NetBSD.org/src/rev/d14dc0f16038
branches: trunk
changeset: 997504:d14dc0f16038
user: kamil <kamil%NetBSD.org@localhost>
date: Sun Mar 10 13:24:50 2019 +0000
description:
Fix bug in kcov_multiple_threads in t_kcov
Spawn the expected number of threads rather than hardcoding one value for
all tests.
diffstat:
tests/modules/t_kcov.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (16 lines):
diff -r 17cf1f7363d8 -r d14dc0f16038 tests/modules/t_kcov.c
--- a/tests/modules/t_kcov.c Sun Mar 10 12:59:03 2019 +0000
+++ b/tests/modules/t_kcov.c Sun Mar 10 13:24:50 2019 +0000
@@ -418,10 +418,10 @@
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);
}
Home |
Main Index |
Thread Index |
Old Index