From 78bb0b4b3c49be0ff6efd7e00a78a5574d11b065 Mon Sep 17 00:00:00 2001 From: Justin Bogner Date: Mon, 23 Jul 2018 18:08:36 +0000 Subject: [PATCH] [lit] Move the shtest-xunit-output check lines into shtest-format These two tests are operating on the same test suite, which causes them to be racy about writing temporary files and can cause spurious failures. Merge them into one test to avoid the issue. llvm-svn: 337718 --- llvm/utils/lit/tests/shtest-format.py | 88 ++++++++++++++++++++++++++++- llvm/utils/lit/tests/shtest-xunit-output.py | 84 --------------------------- 2 files changed, 86 insertions(+), 86 deletions(-) delete mode 100644 llvm/utils/lit/tests/shtest-xunit-output.py diff --git a/llvm/utils/lit/tests/shtest-format.py b/llvm/utils/lit/tests/shtest-format.py index 33ed2fe..8c31869 100644 --- a/llvm/utils/lit/tests/shtest-format.py +++ b/llvm/utils/lit/tests/shtest-format.py @@ -1,8 +1,10 @@ # Check the various features of the ShTest format. # -# RUN: not %{lit} -j 1 -v %{inputs}/shtest-format > %t.out +# RUN: rm -f %t.xml +# RUN: not %{lit} -j 1 -v %{inputs}/shtest-format --xunit-xml-output %t.xml > %t.out # RUN: FileCheck < %t.out %s -# +# RUN: FileCheck --check-prefix=XUNIT < %t.xml %s + # END. # CHECK: -- Testing: @@ -84,3 +86,85 @@ # CHECK: Unresolved Tests : 3 # CHECK: Unexpected Passes : 1 # CHECK: Unexpected Failures: 3 + + +# XUNIT: +# XUNIT-NEXT: +# XUNIT-NEXT: + +# XUNIT: + +# XUNIT: +# XUNIT-NEXT: +# XUNIT: +# XUNIT-NEXT: + + +# XUNIT: +# XUNIT-NEXT: +# XUNIT: +# XUNIT-NEXT: + +# XUNIT: + +# XUNIT: +# XUNIT-NEXT: +# XUNIT: +# XUNIT-NEXT: + +# XUNIT: +# XUNIT-NEXT: +# XUNIT: +# XUNIT-NEXT: + +# XUNIT: + +# XUNIT: +# XUNIT-NEXT: + +# XUNIT: + +# XUNIT: +# XUNIT-NEXT: + +# XUNIT: + +# XUNIT: +# XUNIT-NEXT: +# XUNIT: +# XUNIT-NEXT: + + +# XUNIT: +# XUNIT-NEXT: + +# XUNIT: + +# XUNIT: +# XUNIT-NEXT: + +# XUNIT: +# XUNIT-NEXT: +# XUNIT: +# XUNIT-NEXT: + +# XUNIT: +# XUNIT-NEXT: + +# XUNIT: + +# XUNIT: + +# XUNIT: + +# XUNIT: + +# XUNIT: + +# XUNIT: +# XUNIT-NEXT: +# XUNIT: +# XUNIT-NEXT: + +# XUNIT: +# XUNIT-NEXT: diff --git a/llvm/utils/lit/tests/shtest-xunit-output.py b/llvm/utils/lit/tests/shtest-xunit-output.py deleted file mode 100644 index c724cfa..0000000 --- a/llvm/utils/lit/tests/shtest-xunit-output.py +++ /dev/null @@ -1,84 +0,0 @@ -# RUN: rm -f %t.xml -# RUN: not %{lit} -j 1 -v %{inputs}/shtest-format --xunit-xml-output %t.xml -# RUN: FileCheck < %t.xml %s - -# CHECK: -# CHECK-NEXT: -# CHECK-NEXT: - -# CHECK: - -# CHECK: -# CHECK-NEXT: -# CHECK: -# CHECK-NEXT: - - -# CHECK: -# CHECK-NEXT: -# CHECK: -# CHECK-NEXT: - -# CHECK: - -# CHECK: -# CHECK-NEXT: -# CHECK: -# CHECK-NEXT: - -# CHECK: -# CHECK-NEXT: -# CHECK: -# CHECK-NEXT: - -# CHECK: - -# CHECK: -# CHECK-NEXT: - -# CHECK: - -# CHECK: -# CHECK-NEXT: - -# CHECK: - -# CHECK: -# CHECK-NEXT: -# CHECK: -# CHECK-NEXT: - - -# CHECK: -# CHECK-NEXT: - -# CHECK: - -# CHECK: -# CHECK-NEXT: - -# CHECK: -# CHECK-NEXT: -# CHECK: -# CHECK-NEXT: - -# CHECK: -# CHECK-NEXT: - -# CHECK: - -# CHECK: - -# CHECK: - -# CHECK: - -# CHECK: - -# CHECK: -# CHECK-NEXT: -# CHECK: -# CHECK-NEXT: - -# CHECK: -# CHECK-NEXT: -- 2.7.4