Disable the GNU strerror_r TSan test for NetBSD
authorKamil Rytarowski <n54@gmx.com>
Mon, 29 Oct 2018 09:12:38 +0000 (09:12 +0000)
committerKamil Rytarowski <n54@gmx.com>
Mon, 29 Oct 2018 09:12:38 +0000 (09:12 +0000)
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

compiler-rt/test/tsan/strerror_r.cc

index cfe8a18c17367eac42b123f71da2c78ce4cf30b0..438f54914d6c1cbf92bffcea86e8991c1c713684 100644 (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() {