summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2019-03-10 01:28:42 +0100
committerBruno Haible <bruno@clisp.org>2019-03-10 10:09:44 +0100
commit5db7774f1eac47f348237f8cedef9dd37cd79b47 (patch)
tree2d21385efc9bbe63494bbc9f7c873278e5696aa7 /tests
parent81d0d262d83345d3f50b21b0926b740027a1020a (diff)
downloadgnulib-5db7774f1eac47f348237f8cedef9dd37cd79b47.tar.gz
get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
* lib/get-rusage-as.c (get_rusage_as): When compiled by "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit. * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread before exiting.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-pthread_sigmask2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test-pthread_sigmask2.c b/tests/test-pthread_sigmask2.c
index aa7ecf46c8..e02c31235b 100644
--- a/tests/test-pthread_sigmask2.c
+++ b/tests/test-pthread_sigmask2.c
@@ -84,6 +84,10 @@ main (int argc, char *argv[])
before the call to pthread_sigmask() returns." */
ASSERT (sigint_occurred == 1);
+ /* Clean up the thread. This avoid a "ThreadSanitizer: thread leak" warning
+ from "gcc -fsanitize=thread". */
+ gl_thread_join (killer_thread, NULL);
+
return 0;
}