[compiler-rt] 6222a28 - [TSan][Darwin] Enable test on non-macOS platforms

Julian Lettner via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 20 12:41:50 PDT 2020


Author: Julian Lettner
Date: 2020-08-20T12:28:05-07:00
New Revision: 6222a28db5ed6a04ef7a423dd30d4cc7ce9c216f

URL: https://github.com/llvm/llvm-project/commit/6222a28db5ed6a04ef7a423dd30d4cc7ce9c216f
DIFF: https://github.com/llvm/llvm-project/commit/6222a28db5ed6a04ef7a423dd30d4cc7ce9c216f.diff

LOG: [TSan][Darwin] Enable test on non-macOS platforms

After removing the unnecessary `-mmacosx-version-min=10.12` compiler
flag this test can run on all platforms.  I confirmed that this test is
green for iOS, iOS simulator, and watchOS simulator.

Differential Revision: https://reviews.llvm.org/D85952

Added: 
    

Modified: 
    compiler-rt/test/tsan/Darwin/os_unfair_lock.c

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/tsan/Darwin/os_unfair_lock.c b/compiler-rt/test/tsan/Darwin/os_unfair_lock.c
index e7f0cd52c062..320e7f5e56d1 100644
--- a/compiler-rt/test/tsan/Darwin/os_unfair_lock.c
+++ b/compiler-rt/test/tsan/Darwin/os_unfair_lock.c
@@ -1,8 +1,6 @@
-// RUN: %clang_tsan %s -o %t -mmacosx-version-min=10.12
+// RUN: %clang_tsan %s -o %t
 // RUN: %run %t 2>&1 | FileCheck %s --implicit-check-not='ThreadSanitizer'
 
-// UNSUPPORTED: ios
-
 #include <os/lock.h>
 #include <pthread.h>
 #include <stdio.h>


        


More information about the llvm-commits mailing list