comparison tests/test-pthread_sigmask2.c @ 40220:2796695e9216

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.
author Bruno Haible <bruno@clisp.org>
date Sun, 10 Mar 2019 01:28:42 +0100
parents b06060465f09
children
comparison
equal deleted inserted replaced
40219:53cae2062bf4 40220:2796695e9216
82 "If there are any pending unblocked signals after the call to 82 "If there are any pending unblocked signals after the call to
83 pthread_sigmask(), at least one of those signals shall be delivered 83 pthread_sigmask(), at least one of those signals shall be delivered
84 before the call to pthread_sigmask() returns." */ 84 before the call to pthread_sigmask() returns." */
85 ASSERT (sigint_occurred == 1); 85 ASSERT (sigint_occurred == 1);
86 86
87 /* Clean up the thread. This avoid a "ThreadSanitizer: thread leak" warning
88 from "gcc -fsanitize=thread". */
89 gl_thread_join (killer_thread, NULL);
90
87 return 0; 91 return 0;
88 } 92 }
89 93
90 #else 94 #else
91 95