From 59ecbc342a40b8a4e25820125de3e16cd741282b Mon Sep 17 00:00:00 2001 From: Dan Liew Date: Sat, 20 Jan 2018 02:07:30 +0000 Subject: 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 --- test/tsan/lit.cfg | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'test/tsan') 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" -- cgit v1.2.3