[tsan] Mark a few more tests with "UNSUPPORTED: darwin"

There's a few more lit tests that require features not available on OS X (MAP_32BIT, pthread_setname_np), let's mark them with "UNSUPPORTED: darwin".

Differential Revision: http://reviews.llvm.org/D14923

llvm-svn: 254225
This commit is contained in:
Kuba Brecka 2015-11-28 09:22:27 +00:00
parent fbbdd7bdee
commit 8910d652a9
2 changed files with 6 additions and 0 deletions

View File

@ -11,6 +11,9 @@
// XFAIL: mips64
// XFAIL: aarch64
// MAP_32BIT doesn't exist on OS X.
// UNSUPPORTED: darwin
void *Thread(void *ptr) {
*(int*)ptr = 42;
barrier_wait(&barrier);

View File

@ -1,6 +1,9 @@
// RUN: %clangxx_tsan -O1 %s -o %t && %deflake %run %t | FileCheck %s
#include "test.h"
// OS X doesn't have pthread_setname_np(tid, name).
// UNSUPPORTED: darwin
#if defined(__FreeBSD__)
#include <pthread_np.h>
#define pthread_setname_np pthread_set_name_np