diff options
| author | Reid Kleckner <reid@kleckner.net> | 2015-02-17 21:57:10 +0000 |
|---|---|---|
| committer | Reid Kleckner <reid@kleckner.net> | 2015-02-17 21:57:10 +0000 |
| commit | 7885776604c04c9426e743b5830110882284562c (patch) | |
| tree | ecbdca8b952b07a5bcc0f57a17d8614954e95fbc | |
| parent | 203ee500e9d0eb0f30d06d9e17af103af4f45851 (diff) | |
| download | bcm5719-llvm-7885776604c04c9426e743b5830110882284562c.tar.gz bcm5719-llvm-7885776604c04c9426e743b5830110882284562c.zip | |
Use lit's internal shell when running tests on Windows
The internal shell is faster and more predictable than any copy of
bash.exe on the user's system.
LLVM and Clang use the internal shell by default, and have an
environment variable to disable it. I don't think compiler-rt needs that
complexity, so I left it out.
llvm-svn: 229560
| -rw-r--r-- | compiler-rt/test/asan/lit.cfg | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler-rt/test/asan/lit.cfg b/compiler-rt/test/asan/lit.cfg index 8be7062614b..e99f6163c7b 100644 --- a/compiler-rt/test/asan/lit.cfg +++ b/compiler-rt/test/asan/lit.cfg @@ -3,6 +3,8 @@ import os import platform +import lit.formats + def get_required_attr(config, attr_name): attr_value = getattr(config, attr_name, None) if attr_value == None: @@ -25,6 +27,10 @@ def push_dynamic_library_lookup_path(config, new_path): # Setup config name. config.name = 'AddressSanitizer' + config.name_suffix +# testFormat: The test format to use to interpret tests. +external_bash = (not sys.platform in ['win32']) +config.test_format = lit.formats.ShTest(external_bash) + # Setup source root. config.test_source_root = os.path.dirname(__file__) |

