Lines Matching refs:Thread
36 atf_set "descr" "Test thread sanitizer for thread leak condition"
43 atf_set "descr" "Test thread sanitizer for thread leak with profiling option"
49 atf_set "descr" "Test thread sanitizer for thread leak with position independent code (PIC) flag"
55 atf_set "descr" "Test thread sanitizer for thread leak with position independent execution (PIE) flag"
67 void *Thread(void *a) {
75 pthread_create(&t, NULL, Thread, NULL);
82 c++ -fsanitize=thread -o test test.cc
84 atf_check -s ignore -o ignore -e match:"WARNING: ThreadSanitizer: thread leak" ./test
95 void *Thread(void *a) {
103 pthread_create(&t, NULL, Thread, NULL);
110 c++ -fsanitize=thread -static -o test -pg test.cc
112 atf_check -s ignore -o ignore -e match:"WARNING: ThreadSanitizer: thread leak" ./test
129 void *Thread(void *a) {
137 pthread_create(&t, NULL, Thread, NULL);
144 c++ -fsanitize=thread -fPIC -shared -o libtest.so pic.cc
145 c++ -o test test.cc -fsanitize=thread -L. -ltest
149 atf_check -s ignore -o ignore -e match:"WARNING: ThreadSanitizer: thread leak" ./test
163 void *Thread(void *a) {
171 pthread_create(&t, NULL, Thread, NULL);
178 c++ -fsanitize=thread -o test -fpie -pie test.cc
180 atf_check -s ignore -o ignore -e match:"WARNING: ThreadSanitizer: thread leak" ./test