Disable the GNU strerror_r TSan test for NetBSD

Revert older change that was incorrect in this test.
It was already reverted in the past after an attempt to port it to Darwin.

While there, mark FreeBSD as unsupported as well.

llvm-svn: 345492
This commit is contained in:
Kamil Rytarowski 2018-10-29 09:12:38 +00:00
parent d208461e2d
commit 43d1653fc0
1 changed files with 3 additions and 5 deletions

View File

@ -1,8 +1,7 @@
// RUN: %clangxx_tsan -O1 -DTEST_ERROR=ERANGE %s -o %t && %run %t 2>&1 | FileCheck --check-prefixes=CHECK,CHECK-SYS %s
// RUN: %clangxx_tsan -O1 -DTEST_ERROR=-1 %s -o %t && not %run %t 2>&1 | FileCheck --check-prefixes=CHECK,CHECK-USER %s
// UNSUPPORTED: darwin
// This test provokes a data race under FreeBSD
// XFAIL: freebsd
// This test is for GNU specific version of strerror_r()
// UNSUPPORTED: darwin, netbsd, freebsd
#include "test.h"
@ -14,8 +13,7 @@ char buffer[1000];
void *Thread(void *p) {
barrier_wait(&barrier);
strerror_r(TEST_ERROR, buffer, sizeof(buffer));
return buffer;
return strerror_r(TEST_ERROR, buffer, sizeof(buffer));
}
int main() {