From 4836ac071409bfff65f833ce82bd5f0338d0a8ae Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Thu, 20 Jun 2024 10:56:18 +0200 Subject: [PATCH] tests: silence TSAN warning on test_seqlock exit TSAN warns about leaving the second thread dangling. Doesn't really matter, but just add a pthread_join to get rid of the warning. Signed-off-by: David Lamparter --- tests/lib/test_seqlock.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/lib/test_seqlock.c b/tests/lib/test_seqlock.c index 35501cbd4a..937b3f34f5 100644 --- a/tests/lib/test_seqlock.c +++ b/tests/lib/test_seqlock.c @@ -111,4 +111,5 @@ int main(int argc, char **argv) writestr("main @release\n"); seqlock_release(&sqlo); sleep(1); + pthread_join(thr1, NULL); }