mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-23 22:00:10 +00:00
Enable test/msan/pthread_getname_np.cc for NetBSD
llvm-svn: 349263
This commit is contained in:
parent
17751e1414
commit
7970eccc89
@ -1,7 +1,7 @@
|
||||
// RUN: %clangxx_msan -std=c++11 -O0 %s -o %t && %run %t
|
||||
// The main goal is getting the pthread name back and
|
||||
// FreeBSD based do not support this feature
|
||||
// UNSUPPORTED: android, netbsd, freebsd
|
||||
// UNSUPPORTED: android, freebsd
|
||||
|
||||
// Regression test for a deadlock in pthread_getattr_np
|
||||
|
||||
@ -32,7 +32,11 @@ int main(void) {
|
||||
assert(!res);
|
||||
|
||||
const char *kMyThreadName = "my-thread-name";
|
||||
#if defined(__NetBSD__)
|
||||
res = pthread_setname_np(t, "%s", (void *)kMyThreadName);
|
||||
#else
|
||||
res = pthread_setname_np(t, kMyThreadName);
|
||||
#endif
|
||||
assert(!res);
|
||||
|
||||
char buf[100];
|
||||
|
Loading…
Reference in New Issue
Block a user