diff options
author | Pavel Yatcheniy <yatcheniy.pavel@huawei.com> | 2021-06-17 16:49:52 +0300 |
---|---|---|
committer | Cristian Cadar <c.cadar@imperial.ac.uk> | 2021-06-19 21:23:42 +0100 |
commit | df04aeadefb4e1c34c7ef8b9123947ff045a34d9 (patch) | |
tree | 867bf4d541ac06e826dc6e9e543e35800e3d75c5 /test | |
parent | 24badb5bf17ff586dc3f1856901f27210713b2ac (diff) | |
download | klee-df04aeadefb4e1c34c7ef8b9123947ff045a34d9.tar.gz |
Test failure for WSL 1
Diffstat (limited to 'test')
-rw-r--r-- | test/Runtime/POSIX/Futimesat.c | 2 | ||||
-rw-r--r-- | test/lit.cfg | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/test/Runtime/POSIX/Futimesat.c b/test/Runtime/POSIX/Futimesat.c index bb95ac58..11ecf341 100644 --- a/test/Runtime/POSIX/Futimesat.c +++ b/test/Runtime/POSIX/Futimesat.c @@ -1,3 +1,5 @@ +// REQUIRES: not-wsl-1 +// Disabling WSL 1 because futimesat syscall may be not implemented // RUN: %clang %s -emit-llvm %O0opt -g -c -DTDIR=%T -o %t2.bc // RUN: touch %T/futimesat-dummy // RUN: rm -rf %t.klee-out diff --git a/test/lit.cfg b/test/lit.cfg index a195a1dc..4138a59d 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -211,6 +211,14 @@ for target in supported_targets: config.available_features.add(target) else: config.available_features.add('not-{}'.format(target)) +if 'WSL_DISTRO_NAME' in os.environ and 'WSL_INTEROP' not in os.environ: + config.available_features.add('wsl-1') +else: + config.available_features.add('not-wsl-1') +if 'WSL_DISTRO_NAME' in os.environ and 'WSL_INTEROP' in os.environ: + config.available_features.add('wsl-2') +else: + config.available_features.add('not-wsl-2') # Sanitizer config.available_features.add('{}asan'.format('' if config.have_asan else 'not-')) |