summaryrefslogtreecommitdiff
path: root/test/tsan
diff options
context:
space:
mode:
authorDan Liew <dan@su-root.co.uk>2018-01-20 02:07:30 +0000
committerDan Liew <dan@su-root.co.uk>2018-01-20 02:07:30 +0000
commit59ecbc342a40b8a4e25820125de3e16cd741282b (patch)
tree9fd48aec108ec58b819fa3e49d0c8562727ebff5 /test/tsan
parent7cb30314aaedb58f288d7d6f1ea68c841408da3a (diff)
Force lit to execute the ASan and TSan tests on iOS devices
sequentially. The current implementation of commands in `test/sanitizer_common/ios_commands/` for iOS devices cannot be executed in parallel which results in the ASan and TSan tests failing when executed in parallel by lit which was the default behaviour. We now force the ASan and TSan tests to be a new parallelism group named `darwin-ios-device-sanitizer` which allows only one test to be run at a time. We also emit a warning informing the user that tests are being run sequentially. This only applies if the target is an iOS device. Differential Revision: https://reviews.llvm.org/D42156 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@323026 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/tsan')
-rw-r--r--test/tsan/lit.cfg7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/tsan/lit.cfg b/test/tsan/lit.cfg
index fdbafefbc..fdd3559ba 100644
--- a/test/tsan/lit.cfg
+++ b/test/tsan/lit.cfg
@@ -85,5 +85,8 @@ if config.host_os not in ['FreeBSD', 'Linux', 'Darwin', 'NetBSD']:
if config.android:
config.unsupported = True
-if config.host_os == 'Darwin' and config.target_arch in ["x86_64", "x86_64h"]:
- config.parallelism_group = "darwin-64bit-sanitizer"
+if config.host_os == 'Darwin':
+ if config.target_arch in ["x86_64", "x86_64h"]:
+ config.parallelism_group = "darwin-64bit-sanitizer"
+ elif config.ios and not config.iossim:
+ config.parallelism_group = "darwin-ios-device-sanitizer"