diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2024-06-20 10:56:18 +0200 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2024-06-20 11:16:10 +0200 |
| commit | 4836ac071409bfff65f833ce82bd5f0338d0a8ae (patch) | |
| tree | 0984b3d2b681d29cc6cc3d9e8f7cd531f66a17fe | |
| parent | 1f67dfb1438e74e5258786d4a769084354fd375b (diff) | |
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 <equinox@opensourcerouting.org>
| -rw-r--r-- | tests/lib/test_seqlock.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |
