diff options
author | Reid Kleckner <rnk@google.com> | 2017-07-26 22:57:32 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2017-07-26 22:57:32 +0000 |
commit | c9e700042b7e3af0ce830f930ec121af15c2ec52 (patch) | |
tree | f918ea0c81aa193f1aaebdf58f5f3581315b1293 /llvm/utils/lit/tests | |
parent | 9c13bbe953a93e0dc87bffd2424170da63d0bd44 (diff) | |
download | bcm5719-llvm-c9e700042b7e3af0ce830f930ec121af15c2ec52.tar.gz bcm5719-llvm-c9e700042b7e3af0ce830f930ec121af15c2ec52.zip |
[lit] Fix race between shtest-shell and max-failures tests
Previously these tests would use the same Output directory leading to
flaky non-deterministic failures.
llvm-svn: 309227
Diffstat (limited to 'llvm/utils/lit/tests')
-rw-r--r-- | llvm/utils/lit/tests/Inputs/max-failures/lit.cfg | 6 | ||||
-rw-r--r-- | llvm/utils/lit/tests/max-failures.py | 8 |
2 files changed, 10 insertions, 4 deletions
diff --git a/llvm/utils/lit/tests/Inputs/max-failures/lit.cfg b/llvm/utils/lit/tests/Inputs/max-failures/lit.cfg new file mode 100644 index 00000000000..50d07566e1c --- /dev/null +++ b/llvm/utils/lit/tests/Inputs/max-failures/lit.cfg @@ -0,0 +1,6 @@ +import lit.formats +config.name = 'shtest-shell' +config.suffixes = ['.txt'] +config.test_format = lit.formats.ShTest() +config.test_source_root = os.path.dirname(__file__) + '/../shtest-shell' +config.test_exec_root = None diff --git a/llvm/utils/lit/tests/max-failures.py b/llvm/utils/lit/tests/max-failures.py index 5cc258dd08a..bc58e9a4e47 100644 --- a/llvm/utils/lit/tests/max-failures.py +++ b/llvm/utils/lit/tests/max-failures.py @@ -1,9 +1,9 @@ # Check the behavior of --max-failures option. # -# RUN: not %{lit} -j 1 -v %{inputs}/shtest-shell > %t.out -# RUN: not %{lit} --max-failures=1 -j 1 -v %{inputs}/shtest-shell >> %t.out -# RUN: not %{lit} --max-failures=2 -j 1 -v %{inputs}/shtest-shell >> %t.out -# RUN: not %{lit} --max-failures=0 -j 1 -v %{inputs}/shtest-shell 2>> %t.out +# RUN: not %{lit} -j 1 -v %{inputs}/max-failures > %t.out +# RUN: not %{lit} --max-failures=1 -j 1 -v %{inputs}/max-failures >> %t.out +# RUN: not %{lit} --max-failures=2 -j 1 -v %{inputs}/max-failures >> %t.out +# RUN: not %{lit} --max-failures=0 -j 1 -v %{inputs}/max-failures 2>> %t.out # RUN: FileCheck < %t.out %s # # END. |