aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2025-10-07 21:02:29 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2025-10-07 21:02:29 +0000
commitd9c94e5eefc0d1ed772cc3af15d92f1960ba73a6 (patch)
tree834677320ff898783a5c8abdfafa3fdce9248336 /tests
parentd801cc2d8542854a5dee9bfb25a15af6fa1dafad (diff)
Diffstat (limited to 'tests')
-rw-r--r--tests/sys/netinet/so_reuseport_lb_test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/sys/netinet/so_reuseport_lb_test.c b/tests/sys/netinet/so_reuseport_lb_test.c
index fa9d6e425884..0479bd070ca6 100644
--- a/tests/sys/netinet/so_reuseport_lb_test.c
+++ b/tests/sys/netinet/so_reuseport_lb_test.c
@@ -375,6 +375,11 @@ ATF_TC_BODY(concurrent_add, tc)
usleep(20000);
}
+
+ for (size_t j = nitems(threads); j > 0; j--) {
+ ATF_REQUIRE(pthread_cancel(threads[j - 1]) == 0);
+ ATF_REQUIRE(pthread_join(threads[j - 1], NULL) == 0);
+ }
}
/*