Fix racy msan test
Summary: Child thread may finish before pthread_setname_np() and/or pthread_getname_np() had a chance to run, which causes these functions to fail with ENOENT (meaning /proc/self/task/[tid]/comm doesn't exist). Fix by stalling child thread on a mutex. Reviewers: eugenis Reviewed By: eugenis Subscribers: llvm-commits, #sanitizers Differential Revision: https://reviews.llvm.org/D43548 llvm-svn: 325703
Loading
Please sign in to comment