forked from OSchip/llvm-project
[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:
parent
fbbdd7bdee
commit
8910d652a9
|
@ -11,6 +11,9 @@
|
||||||
// XFAIL: mips64
|
// XFAIL: mips64
|
||||||
// XFAIL: aarch64
|
// XFAIL: aarch64
|
||||||
|
|
||||||
|
// MAP_32BIT doesn't exist on OS X.
|
||||||
|
// UNSUPPORTED: darwin
|
||||||
|
|
||||||
void *Thread(void *ptr) {
|
void *Thread(void *ptr) {
|
||||||
*(int*)ptr = 42;
|
*(int*)ptr = 42;
|
||||||
barrier_wait(&barrier);
|
barrier_wait(&barrier);
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
// RUN: %clangxx_tsan -O1 %s -o %t && %deflake %run %t | FileCheck %s
|
// RUN: %clangxx_tsan -O1 %s -o %t && %deflake %run %t | FileCheck %s
|
||||||
#include "test.h"
|
#include "test.h"
|
||||||
|
|
||||||
|
// OS X doesn't have pthread_setname_np(tid, name).
|
||||||
|
// UNSUPPORTED: darwin
|
||||||
|
|
||||||
#if defined(__FreeBSD__)
|
#if defined(__FreeBSD__)
|
||||||
#include <pthread_np.h>
|
#include <pthread_np.h>
|
||||||
#define pthread_setname_np pthread_set_name_np
|
#define pthread_setname_np pthread_set_name_np
|
||||||
|
|
Loading…
Reference in New Issue