[compiler-rt] r345492 - Disable the GNU strerror_r TSan test for NetBSD

Kamil Rytarowski via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 29 02:12:39 PDT 2018


Author: kamil
Date: Mon Oct 29 02:12:38 2018
New Revision: 345492

URL: http://llvm.org/viewvc/llvm-project?rev=345492&view=rev
Log:
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.

Modified:
    compiler-rt/trunk/test/tsan/strerror_r.cc

Modified: compiler-rt/trunk/test/tsan/strerror_r.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/strerror_r.cc?rev=345492&r1=345491&r2=345492&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/strerror_r.cc (original)
+++ compiler-rt/trunk/test/tsan/strerror_r.cc Mon Oct 29 02:12:38 2018
@@ -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() {




More information about the llvm-commits mailing list